istudylinux
istudylinux
http://mw.istudylinux.cn/wiki/%E9%A6%96%E9%A1%B5
MediaWiki 1.38.4
first-letter
媒体文件
特殊
讨论
用户
用户讨论
Istudylinux
Istudylinux讨论
文件
文件讨论
MediaWiki
MediaWiki讨论
模板
模板讨论
帮助
帮助讨论
分类
分类讨论
表单
表单讨论
模块
模块讨论
Gadget
Gadget talk
Gadget definition
Gadget definition talk
网站
网站讨论
前端
前端讨论
模板6
模板6讨论
首页
0
1
1
2022-10-06T06:26:58Z
MediaWiki default
2
wikitext
text/x-wiki
<strong>已安装MediaWiki。</strong>
请查阅[https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents 用户指导]以获取使用本wiki软件的信息。
== 入门 ==
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings MediaWiki配置设置列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/zh-hans MediaWiki常见问题]
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki发布邮件列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources 本地化MediaWiki到您的语言]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam 了解如何在您的wiki上打击破坏]
6ab47d44fe5026a5f9018b9f8f1cc158bd9d14c0
24
1
2022-10-20T14:02:39Z
Istudylinux
1
页面内容被替换为“{{首页}}”
wikitext
text/x-wiki
{{首页}}
8f9f25044a05cf6f8cb99272f93d6fb4ca7a9bb5
文件:Cc-0.png
6
2
2
2022-10-06T06:36:52Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
42
2
2022-10-28T08:12:51Z
Istudylinux
1
Istudylinux上传[[文件:Cc-0.png]]的新版本
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Cc-by-nc.png
6
3
3
2022-10-06T06:45:27Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
43
3
2022-10-28T08:12:51Z
Istudylinux
1
Istudylinux上传[[文件:Cc-by.png]]的新版本
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:首页/styles.css
10
4
4
2022-10-06T08:26:33Z
Istudylinux
1
创建页面,内容为“/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */ .mainpage_row { display: flex; flex-direction: row; flex-flow: row wrap; justify-content: space-between; padding: 0; margin: 0 -5px 0 -5px; } .mainpage_box { flex: 1; margin: 5px; min-width: 210px; border: 1px solid #CCC; padding: 0 10px 10px 10px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); } .mainpage_box h3 { /* Reset padding so is equal across skins */ padding-…”
sanitized-css
text/css
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}
8393c7c9674706cddee975fef7ebcec856de1e57
文件:MediaWiki-2020-logo.png
6
5
5
2022-10-06T08:28:47Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Edit cite.png
6
6
6
2022-10-06T08:30:10Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
入门编辑
0
7
7
2022-10-06T08:30:45Z
Istudylinux
1
创建页面,内容为“== 概念 == * wikitext * HTML标签 * 渲染结果(或输出结果) === wikitext === '''维基文本(wikitext)'''是使用wiki标记语言写成的文本内容。维基文本是内容、标记符以及元数据的混合。 wiki的所有页面的当前文本和历史文本均以维基文本的形式存储在text表的数据库中。<ref>[https://www.mediawiki.org/wiki/wikitext/zh 维基文本]</ref> 几乎所有的页面都是wikitext组合而成的。…”
wikitext
text/x-wiki
== 概念 ==
* wikitext
* HTML标签
* 渲染结果(或输出结果)
=== wikitext ===
'''维基文本(wikitext)'''是使用wiki标记语言写成的文本内容。维基文本是内容、标记符以及元数据的混合。 wiki的所有页面的当前文本和历史文本均以维基文本的形式存储在text表的数据库中。<ref>[https://www.mediawiki.org/wiki/wikitext/zh 维基文本]</ref>
几乎所有的页面都是wikitext组合而成的。
=== HTML标签 ===
如果你会HTML更好,不会,也可以简单的使用它里面的一些标签。
* HTML 标签是由尖括号包围的关键词,比如 <html>
* HTML 标签通常是成对出现的,比如 <nowiki><b> 和 </b></nowiki>
* 标签对中的第一个标签是开始标签,第二个标签是结束标签
* 开始和结束标签也被称为开放标签和闭合标签<ref>[https://www.w3school.com.cn/html/html_jianjie.asp HTML标签]</ref>
=== 渲染结果 ===
这个是我们写完wikitext,点击下面的'''保存'''或者'''显示预览'''展现出来的页面内容排版,样式。
== 基础编辑 ==
=== 标题 ===
{| class="wikitable"
|+ 标题
|-
! wikitext !! 输出结果 !! 备注
|-
| <pre>== 二级标题 ==
=== 三级标题 ===
===== 五级标题 =====</pre>
|
<font style="font-weight: normal; font-size: 1.5em;border-bottom:1px solid #a2a9b1;font-family: 'Linux Libertine','Georgia','Times',serif;">二级标题</font>
<font style="font-weight: bold; font-size: 1.2em;">三级标题</font>
<font style="font-weight: bold; font-size: 100%;">五级标题</font>
| 建议将"=="作为最高级标题来使用,在编辑框上部有此快捷按钮可方便的使用<ref name="multiple">[https://wiki.ubuntu.org.cn/Wiki%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95 ubuntu中文wiki]</ref>,二级标题有下划线。
|}
=== 文本格式化,样式 ===
{| class="wikitable"
|+ 文本格式化,样式
|-
! 名称 !! wikitext !! 输出结果 !! 备注
|-
| 粗体
| <pre>'''粗体文本'''
<b>这个也是粗体</b></pre>
| '''粗体文本'''
<b>这个也是粗体</b>
| 上面的是标准的wikitext,下面的html标签
|-
| 斜体
| <pre>
''斜体文本''
<i>这个也是斜体哦!</i></pre>
|
''斜体文本''
<i>这个也是斜体哦!</i>
| 上面的是标准的wikitext,下面的html标签
|-
| 粗斜体
| <pre>
'''''粗斜体文字'''''
<i><b>另一种粗斜体</b></i>
</pre>
| '''''粗斜体文字'''''
<i><b>另一种粗斜体</b></i>
|-
| 缩进
|
<pre>
首行缩进,一般用于段落开头。
:首行缩进,一般用于段落开头。
::再缩
:::还能缩</pre>
|
首行缩进,一般用于段落开头。
:首行缩进,一般用于段落开头。
::再缩
:::还能缩
|
|-
| 删除线,下划线
| <pre>你可以使用<strike>删除线</strike>或<u>下划线</u>。</pre>
| 你可以使用<strike>删除线</strike>或<u>下划线</u>。
|-
| 上标
| <pre>2<sup>3</sup>=8</pre>
| 2<sup>3</sup>=8
|
|-
| 下标
| <pre>这是我的<sub>小尾巴~~</sub></pre>
| 这是我的<sub>小尾巴~~</sub>
|
|-
|居中
|<pre><center>使文字居中显示</center></pre>
|<center>使文字居中显示</center>
|
|-
| nowiki,不解析wikitext
|<pre>
* 使用'''标记'''
* <nowiki><nowiki>不使用'''标记'''</nowiki></nowiki>
</pre>
|
* 使用'''标记'''
* <nowiki>不使用'''标记'''</nowiki>
| 对于wikitext不让其渲染,对于HTML的标签有的也有用。<ref>[https://zh.wikipedia.org/wiki/Wikipedia:%E6%96%B0%E6%89%8B%E5%85%A5%E9%96%80/%E7%B6%AD%E5%9F%BA%E6%96%87%E6%9C%AC 新手入門/維基文本]</ref>
|}
=== 列表 ===
{| class="wikitable"
|+ 标题
|-
! 名称 !! wikitext !! 输出结果 !! 备注
|-
! colspan="4"| '''*,#'''号都作用于第一行
|-
| 无序列表
|
<pre>
* 条目1
** 条目1.1
*** 条目1.1.1
* 条目2
</pre>
|
* 条目1
** 条目1.1
*** 条目1.1.1
* 条目2
|
|-
| 有序列表
|
<pre>
# 条目1
## 条目1.1
## 条目1.2
## 条目1.3
# 条目2
## 条目2.1
### 条目2.1.1
</pre>
|
# 条目1
## 条目1.1
## 条目1.2
## 条目1.3
# 条目2
## 条目2.1
### 条目2.1.1
|
|-
| 定义列表
|
<pre>
;定义列表1
:项目一
;定义列表2
:项目二
</pre>
|
;定义列表1
:项目一
;定义列表2
:项目二
|
|-
| 混合列表
| <pre>
# 小标题1
#* 条目1
#*# 条目1.1
#*# 条目1.2
#* 条目2
# 小标题2
</pre>
|
# 小标题1
#* 条目1
#*# 条目1.1
#*# 条目1.2
#* 条目2
# 小标题2
|
|-
| 无效有序列表
| <pre>
# 1
不能插入,否则重新计数,但是无序列表可以
# 2
</pre>
|
# 条目1
不能插入,否则重新计数,但是无序列表可以
# 条目2
|
|}
=== 链接 ===
{| class="wikitable"
|+ 链接
|-
! 用途 !! wikitext !! 输出结果 !! 备注
|-
| 链接到本网站的某个页面
|
<pre>
# [[MediaWiki安装]]
# [[MediaWiki安装|安装]]
</pre>
|
# [[MediaWiki安装]]
# [[MediaWiki安装|安装]]
|
|-
| 链接到本网站的某个页面的某个章节
| <pre>
# [[MediaWiki安装#配置数据库]]
# [[MediaWiki安装#配置数据库|配置数据库]]</pre>
|
# [[MediaWiki安装#配置数据库]]
# [[MediaWiki安装#配置数据库|配置数据库]]
|
|-
| 不存在页面
| <pre>[[如何成为x]]</pre>
| [[如何成为x]]
| 显示红色都没有创建该页面
|-
| 外部链接
| <pre>
# http://www.baidu.com
# [http://www.baidu.com]
# [http://www.baidu.com 百度]
</pre>
|
# http://www.baidu.com
# [http://www.baidu.com]
# [http://www.baidu.com 百度]
|
|}
=== 表格 ===
{| class="wikitable"
|+ 简单表格
|-
! 名称 !! wikitext !! 输出结果 !! 备注
|-
| 2x2表格
|
<pre>
{| class="wikitable sortable"
|+ 标题文本
|-
! A !! B
|-
| 示例1 || 示例2
|-
| 示例3 || [[File:MediaWiki-2020-logo.png|center|50px]]
|}
</pre>
|
{| class="wikitable sortable"
|+ 标题文本
|-
! A !! B
|-
| 示例1 || 示例2
|-
| 示例3 || [[File:MediaWiki-2020-logo.png|center|50px]]
|}
| 表格里面什么都可以加。
|-
| 3x3表格
|<pre>
{| class="wikitable"
|-
! A !! B !! C
|-
| 示例1 || 示例2 || 示例3
|-
| 示例4 || [[File:MediaWiki-2020-logo.png|center|50px]] || 示例6
|-
| 示例7 || 示例8 || 示例9
|}
</pre>
|
{| class="wikitable"
|-
! A !! B !! C
|-
| 示例1 || 示例2 || 示例3
|-
| 示例4 || [[File:MediaWiki-2020-logo.png|center|50px]] || 示例6
|-
| 示例7 || 示例8 || 示例9
|}
|
|-
| 4x4无边框表格
|
<pre>
{|
|+ 标题文本
|-
! A !! B !! C !! D
|-
| [[File:MediaWiki-2020-logo.png|center|50px]] || 示例2 || 示例3 || 示例4
|-
| 示例5 || 示例6 || 示例7 || 示例8
|-
| 示例9 || 示例10 || 示例11 || 示例12
|-
| 示例13 || 示例14 || 示例15 || 示例16
|}
</pre>
|
{|
|+ 标题文本
|-
! A !! B !! C !! D
|-
| [[File:MediaWiki-2020-logo.png|center|50px]] || 示例2 || 示例3 || 示例4
|-
| 示例5 || 示例6 || 示例7 || 示例8
|-
| 示例9 || 示例10 || 示例11 || 示例12
|-
| 示例13 || 示例14 || 示例15 || 示例16
|}
|
|}
=== 图像 ===
{| class="wikitable"
|+ 标题
|-
! 作用 !! wikitext !! 输出结果 !! 备注
|-
| 插入一副图片
| <pre>[[File:MediaWiki-2020-logo.png]]</pre>
| [[File:MediaWiki-2020-logo.png]]
| 原始大小,无格式
|-
| 将宽度设为50px
|
<pre>[[File:MediaWiki-2020-logo.png|50px]]</pre>
| [[File:MediaWiki-2020-logo.png|50px]]
| 只能设定宽度,高度自动等比例缩放
|-
| 使用缩略图
| <pre>[[File:MediaWiki-2020-logo.png|thumb]]</pre>
| [[File:MediaWiki-2020-logo.png|thumb]]
| 默认宽度为180px,并自动右对齐
|-
| 使用缩略图,同时将宽度设为50px
| <pre>[[File:MediaWiki-2020-logo.png|thumb|50px]]</pre>
| [[File:MediaWiki-2020-logo.png|thumb|50px]]
|
|-
| 将宽度设为60px,并居中
| <pre>[[File:MediaWiki-2020-logo.png|center|50px]]</pre>
| [[File:MediaWiki-2020-logo.png|center|50px]]
| 可选的center还有left(靠左),right(靠右)
|-
| 添加说明文字
| <pre>[[File:MediaWiki-2020-logo.png|thumb|100px|Mediaiwiki Logo]]</pre>
| [[File:MediaWiki-2020-logo.png|thumb|50px|Mediaiwiki Logo]]
| 若没有写说明文字,则最后一个参数会被自动被视为说明文字<ref name="multiple" />
|-
| 添加链接
| <pre>[[File:MediaWiki-2020-logo.png|thumb|left|50px|[[MediaWiki安装|安装]]]]
[[File:MediaWiki-2020-logo.png|50px|link=MediaWiki安装]]</pre>
|
[[File:MediaWiki-2020-logo.png|thumb|50px|[[MediaWiki安装|安装]]]]
[[File:MediaWiki-2020-logo.png|50px|link=MediaWiki安装]]
| 左边第一个点击图片就跳转
|-
| 图片加框
| <pre>[[File:MediaWiki-2020-logo.png|100px|有框]]</pre>
| [[File:MediaWiki-2020-logo.png|100px|有框]]
| '''有框'''也可以使用英文'''frame'''
|}
=== 引用 ===
:通常,在写论文的时候,有的东西是你参考的内容,往往会在内容边上添加类似<sup>[1]</sup>样式。然后在论文最后面写上类似'''[1]马克思恩格斯全集:第1卷[M]. 北京:人民出版社,1956.'''<ref>[https://zhuanlan.zhihu.com/p/29513792 论文参考格式]</ref>
:这种格式,如果是有电子文献,一般的后面都会有复制参考格式的功能。而一般的网页内容就并不是那么严谨,不过也可以添加相应的参考地址供排错。
:你可以自己直接在内容后面添加<sup>[1]</sup>,然后在文章最后面写上参考的书籍等;这种比较麻烦,如果添加多个,或者之间插入参考,后面的序号需要重新排序;'''这里介绍Cite扩展的简单语法''',更多使用方法见[[cite使用]]。
[[File:edit_cite.png|center|有框|来自mediawiki的例子]]
=== 特殊字符 ===
见编辑栏第一行'''特殊字符'''。
== 参考 ==
15d6d6881600b0420fc00b362064b0097989b02f
ShortURL配置
0
8
8
2022-10-06T08:31:35Z
Istudylinux
1
创建页面,内容为“将网站的网址变成形如<code>www.istudylinux.cn/index.php?title=首页</code>或者<code>www.istudylinux.cn/wiki/首页</code>。 == 域名格式 == 以百度举例说明<ref>[https://zh.wikipedia.org/wiki/%E5%9F%9F%E5%90%8D 维基百科-域名]</ref> * image.baidu.com ** com 顶级域名,还有其他的如org,net,cn等等 ** baidu 二级域名(通常也是我们注册域名的时候注册的名称) ** image 三级域名,可以有多个,比…”
wikitext
text/x-wiki
将网站的网址变成形如<code>www.istudylinux.cn/index.php?title=首页</code>或者<code>www.istudylinux.cn/wiki/首页</code>。
== 域名格式 ==
以百度举例说明<ref>[https://zh.wikipedia.org/wiki/%E5%9F%9F%E5%90%8D 维基百科-域名]</ref>
* image.baidu.com
** com 顶级域名,还有其他的如org,net,cn等等
** baidu 二级域名(通常也是我们注册域名的时候注册的名称)
** image 三级域名,可以有多个,比如video,map等等
== 域名使用 ==
如果我们注册了域名,比如本站<code>istudylinux.cn</code>,我可以在域名控制台创造出无数个三级域名,比如
# mw.istudylinux.cn
# wiki.istudylinux.cn
# baidu.istudylinux.cn
# ...
这里域名使用遵循一定的“标准”(前提是你使用该域名来进行wiki网站的维护),比如mw官网一般都是建议大家都在域名后面跟上“/name”的格式。
== 优势和劣势 ==
* <cite>优势:缩短URL会对终端用户隐藏大部分技术细节,这对大部分站点拥有者都是有用的。除此之外,这还意味着当底层软件变动时可以保持url的稳定性。 对访问者来说,他们也更易于记忆并且让访问者更方便的根据URL进行导航。 此外,短URL提供优于搜索引擎优化的默认URL的优势,因为在计算页面排名时,搜索引擎可以不利地处理包含?的URL。</cite>
* <cite>劣势:需要配置,因此,根据您使用的托管环境,可能很难重新创建。 但是,由于每个广泛使用的Web服务器都能够配置为使用短URL,因此大多数付费Web托管服务都应支持此功能。任何不提供此功能的主机都不值得你花钱。</cite><ref>[https://www.mediawiki.org/wiki/Manual:Short_URL/zh#优势与劣势 短URL的优势与劣势]</ref>
== mw建议的格式 ==
'''注意:这里的格式啥的都是一般定义的,没有强制规定,想怎么用就怎么用,当然是在易用易维护的情况下。we happy just ok!'''
{| class="wikitable"
|+ 一些格式参考
|-
! URL !! 说明 !! 备注
|-
| http://istudylinux.cn/w/index.php?title=Page_title || MediaWiki的最新版本,有CGI支持 || 安装wiki后默认的格式
|- style="color:red;"
| http://istudylinux.cn/w/index.php/Page_title || MediaWiki的最新版本,无CGI支持 || 不推荐
|- style="color:green;"
| http://istudylinux.cnwiki/Page_title || 推荐,这是最常见的配置,维基百科就是这样 || 但是不是默认就是这样的,因为它需要服务端的修改。
|- style="color:green;"
| http://mw.istudylinux.cn/wiki/Page_title || 推荐 || 这样一个域名可以用在多个网站上
|- style="color:red;"
| http://istudylinux.cn/Page_title || 不推荐 ||
|- style="color:red;"
| http://wiki.istudylinux.cn/Page_title || 不推荐 ||
|}
== 配置 ==
=== 形如/index.php?title=Page_title ===
该形式目前是在mw安装完成后,默认是该种格式。不需要额外的配置
=== 形如/wiki/Page_title ===
需要修改如下文件
* LocalSettings.php
* nginx(或apache)
==== nginx ====
上述文件需要相互配合修改。
* [[ShortURL配置/nginx|nginx修改方法]]
==== apache ====
* [[ShortURL配置/apache|apache修改方法]]
== 名词 ==
=== CGI(通用网关接口) ===
<cite>简而言之,一个 HTTP POST 请求,从客户端经由 标准输入 发送数据到一个CGI 程序。同时携带其他数据,例如 URL 路径, HTTP头字段数据,被转换为进程的环境变量。</cite>
<cite>实现维基百科编辑的CGI程序的一个例子:首先用户代理程序向这个CGI程序请求某个名称的条目,如果该条目页面存在,CGI程序就会去获取那个条目页面的原始数据,然后把它转换成HTML并把结果输出给浏览器;如果该条目页面不存在,CGI程序则会提示用户新建一个页面。所有维基操作都是通过这个CGI程序来处理的。</cite><ref>[https://zh.wikipedia.org/wiki/%E9%80%9A%E7%94%A8%E7%BD%91%E5%85%B3%E6%8E%A5%E5%8F%A3 CGI-通用网关接口]</ref>
== 参考 ==
b203836590da5f2d966638b26f3b2917b73e3cb1
ShortURL配置/nginx
0
9
9
2022-10-06T08:32:53Z
Istudylinux
1
创建页面,内容为“== 环境 == {| class="wikitable" |- ! 名称 !! 内容 |- | 网页root目录 || /var/www/html |- | mw文件夹 || /var/www/html/myGod |- | LocalSettings.php || /var/www/html/myGod/LocalSettings.php |- | nginx配置文件 || /etc/nginx/site-enabled/mywiki.conf |- | 最后URL结果 || http://mw.istudylinux.cn/wiki/首页 |} 仅需要更改两个地方。<ref>[https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx ShortURL的nginx改法]</ref> == mywiki.conf ==…”
wikitext
text/x-wiki
== 环境 ==
{| class="wikitable"
|-
! 名称 !! 内容
|-
| 网页root目录 || /var/www/html
|-
| mw文件夹 || /var/www/html/myGod
|-
| LocalSettings.php || /var/www/html/myGod/LocalSettings.php
|-
| nginx配置文件 || /etc/nginx/site-enabled/mywiki.conf
|-
| 最后URL结果 || http://mw.istudylinux.cn/wiki/首页
|}
仅需要更改两个地方。<ref>[https://www.mediawiki.org/wiki/Manual:Short_URL/Nginx ShortURL的nginx改法]</ref>
== mywiki.conf ==
下面的内容可以更改两个地方,一个是mywiki,一个是66行后的wiki字段。
* myGod就是上面的mw文件夹名称
* wiki就是你改动后的URL后面首页前面的名称,也可以改为fun,boy,abc,随你喜好
<syntaxhighlight lang="nginx" line="true" highlight="2,5-76">
server {
root /var/www/html;
...
# Location for wiki's entry points
location ~ ^/myGod/(index|load|api|thumb|opensearch_desc|rest|img_auth)\.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000; # or whatever port your PHP-FPM listens on
}
# Images
location /myGod/images {
# Separate location for images/ so .php execution won't apply
}
location /myGod/images/deleted {
# Deny access to deleted images folder
deny all;
}
# MediaWiki assets (usually images)
location ~ ^/myGod/resources/(assets|lib|src) {
try_files $uri 404;
add_header Cache-Control "public";
expires 7d;
}
# Assets, scripts and styles from skins and extensions
location ~ ^/myGod/(skins|extensions)/.+\.(css|js|gif|jpg|jpeg|png|svg|wasm)$ {
try_files $uri 404;
add_header Cache-Control "public";
expires 7d;
}
# Favicon
location = /favicon.ico {
alias /myGod/images/6/64/Favicon.ico;
add_header Cache-Control "public";
expires 7d;
}
# License and credits files
location ~ ^/myGod/(COPYING|CREDITS)$ {
default_type text/plain;
}
## Uncomment the following code if you wish to use the installer/updater
## installer/updater
#location /myGod/mw-config/ {
# # Do this inside of a location so it can be negated
# location ~ \.php$ {
# include /etc/nginx/fastcgi_params;
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_pass 127.0.0.1:9000; # or whatever port your PHP-FPM listens on
# }
#}
# Handling for Mediawiki REST API, see [[mw:API:REST_API]]
location /myGod/rest.php/ {
try_files $uri $uri/ /myGod/rest.php?$query_string;
}
## Uncomment the following code for handling image authentication
## Also add "deny all;" in the location for /w/images above
#location /myGod/img_auth.php/ {
# try_files $uri $uri/ /myGod/img_auth.php?$query_string;
#}
# Handling for the article path (pretty URLs)
location /wiki/ {
rewrite ^/wiki/(?<pagename>.*)$ /myGod/index.php;
}
# Allow robots.txt in case you have one
location = /robots.txt {
}
# Explicit access to the root website, redirect to main page (adapt as needed)
location = / {
return 301 /wiki/首页;
}
...
}
</syntaxhighlight>
== LocalSettings.php ==
在页面后面添加如下内容:
<syntaxhighlight lang="php" line="true" highlight="1-4">
# 配置shortURL
$wgScriptPath = "/myGod";
$wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
</syntaxhighlight>
== 参考 ==
71d11e9485642b770c64eb898c1d359058fcf4f3
文件:浏览器模拟手机按钮.png
6
10
10
2022-10-06T08:35:15Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
移动端皮肤
0
11
11
2022-10-06T08:35:19Z
Istudylinux
1
创建页面,内容为“== 移动端皮肤 == PC和移动端屏幕大小不一衍生出来的问题,网页开发体现的是2倍图,3倍图<ref>https://blog.csdn.net/m0_48387335/article/details/120358167</ref>等等。有兴趣可以参考[https://blog.csdn.net/m0_48387335/article/details/120358167 移动端常见小知识] == 移动端开发 == 网页的移动端开发一般有两种方法: # '''专门定制手机网页'''(比如:[https://m.taobao.com 淘宝网手机端]…”
wikitext
text/x-wiki
== 移动端皮肤 ==
PC和移动端屏幕大小不一衍生出来的问题,网页开发体现的是2倍图,3倍图<ref>https://blog.csdn.net/m0_48387335/article/details/120358167</ref>等等。有兴趣可以参考[https://blog.csdn.net/m0_48387335/article/details/120358167 移动端常见小知识]
== 移动端开发 ==
网页的移动端开发一般有两种方法:
# '''专门定制手机网页'''(比如:[https://m.taobao.com 淘宝网手机端],[https://m.jd.com 京东手机端])
# '''响应式布局'''(可以用手机看看[https://wiki.biligame.com/wiki/%E9%A6%96%E9%A1%B5 bilili wiki],和[https://www.huijiwiki.com/wiki/%E9%A6%96%E9%A1%B5 灰机wiki]的网站)
前者需要定制,专门针对相应的场景,重新绘图,写CSS样式,JS脚本,对接MW。难度地狱级!!!不过,mw官方已经有几款针对手机的皮肤,[https://www.mediawiki.org/wiki/Skin:Minerva_Neue Minerva Neue],[https://www.mediawiki.org/wiki/Skin:WPtouch WPtouch]等。
后者,目前MW的几乎所有皮肤都支持响应式布局。
== 移动端应用场景 ==
# PC端和移动端'''共用'''一套皮肤
# PC端和移动端'''分别使用'''各自的皮肤
针对第一种,则是直接使用默认的皮肤就行,默认的皮肤如果支持'''响应式布局''',在手机上这就会出现比较合适的视图。否则就是缩小的PC端视图!
而第二种则需要在<code>LocalSettings.php</code>添加对应的代码。
== 配置 ==
针对上述两种情况,进行下面两种配置。
=== 共用 ===
不用啥配置,只需要在<code>LocalSettings.php</code>里面添加<code>$wgDefaultSkin = 'vector';</code>就行了。
=== 分别使用 ===
<pre>
## 将下面的代码添加到LocalSettings.php里面
## Default skin: you can change the default skin.
## Use the internal symbolic names, ie 'vector', 'monobook':
if (preg_match("/(mobile|webos|opera mini|android|blackberry|tablet)/i", $_SERVER['HTTP_USER_AGENT'])) {
$wgDefaultSkin = 'minerva';
} else {
$wgDefaultSkin = 'vector';
}
</pre>
完整代码<ref>https://www.mediawiki.org/wiki/Simple_mobile_skin_auto_change</ref>
* 参数1,<code>"/(mobile|weos....)/i"</code>正则匹配表达式,和参数2返回的字符串进行匹配
* 参数2,<code>$_SERVER['HTTP_USER_AGENT']</code>获取用户使用的浏览器标识<ref>https://www.php.net/manual/zh/tutorial.useful.php</ref>
* <code>preg_match</code>函数用于参数1能否在参数2找到,匹配到就立即停止,返回真,然后不会继续匹配后面的<ref>https://www.php.net/manual/zh/function.preg-match.php</ref>
* 判定完成后,根据结果设置<code>wgDefaultSkin</code>的值
== 调试(模拟手机) ==
* 直接使用手机查看网站页面
* 使用谷歌浏览器、火狐浏览器、360(极速)浏览器或者其他浏览器按下F12,点击图片中的指向。[[file:浏览器模拟手机按钮.png|frame|模拟按钮]]
== 注意 ==
如果十分在意移动端的<b>内容</b>布局,则在写完文章后进行两边调试。
== 内容为主 ==
先做内容再去搞装饰吧!
== 参考 ==
<references />
ba23a1547262ed72cebccdb4587aac1da673997c
文件:Icon setting.png
6
12
12
2022-10-06T08:38:23Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:首页
10
13
13
2022-10-06T08:38:43Z
Istudylinux
1
创建页面,内容为“<templatestyles src="Template:首页/styles.css" /> <div id="audiences" class="mainpage_row"> <div class="mainpage_box"> <h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3> <div id="mainpage-admins" title="入门" class="items"> * [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha] * Media…”
wikitext
text/x-wiki
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
* [[MediaWiki安装|MW安装]]
* [[入门编辑]]
* [[ShortURL配置]]
* [[移动端皮肤]]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>MW官网入门</span></h3>
<div id="mainpage-users" title="MW官网入门" class="items">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings MediaWiki配置设置列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/zh-hans MediaWiki常见问题]
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki发布邮件列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources 本地化MediaWiki到您的语言]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam 了解如何在您的wiki上打击破坏]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>仓库</span></h3>
<div id="mainpage-devs" title="仓库" class="items">
一些描述性的话语...
* 条目1
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
* 条目1
* 条目2
* 条目3
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
* 小标题
* 小标题
</div>
<span class="plainlinks">[[首页|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
<span class="plainlinks">[[File:icon_setting.png|text-bottom|16px|link=https://www.facebook.com/MediaWikiProject]] [[File:icon_setting.png|text-bottom|16px|link=https://twitter.com/mediawiki]]</span>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
93bb5fa2d583cd353bcf2c3d97b769951e829e24
30
13
2022-10-28T07:42:33Z
Istudylinux
1
wikitext
text/x-wiki
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
* [[MediaWiki安装|MW安装]]
* [[入门编辑]]
* [[ShortURL配置]]
* [[移动端皮肤]]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>MW官网入门</span></h3>
<div id="mainpage-users" title="MW官网入门" class="items">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings MediaWiki配置设置列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/zh-hans MediaWiki常见问题]
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki发布邮件列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources 本地化MediaWiki到您的语言]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam 了解如何在您的wiki上打击破坏]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>仓库</span></h3>
<div id="mainpage-devs" title="仓库" class="items">
{{#dpl:
|category=前端
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
{{#dpl:
|category=农场
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
最近添加:
{{#dpl:
|category=网站
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
<span class="plainlinks">[[网站|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
83ca8b12c2a6bf7fb84d62ea4426ac71ef2e737d
文件:Mw install1.png
6
14
14
2022-10-06T08:42:21Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Mw install2.png
6
15
15
2022-10-06T08:42:31Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Mw install3.png
6
16
16
2022-10-06T08:42:54Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Mw install4.png
6
17
17
2022-10-06T08:43:07Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Mw install5.png
6
18
18
2022-10-06T08:43:26Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Mw install6.png
6
19
19
2022-10-06T08:43:38Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Mw install7.png
6
20
20
2022-10-06T08:44:15Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Mw install8.png
6
21
21
2022-10-06T08:44:23Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Mw install9.png
6
22
22
2022-10-06T08:44:30Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
MediaWiki安装
0
23
23
2022-10-06T08:44:49Z
Istudylinux
1
创建页面,内容为“运行供他人访问的网站或者自己局域网使用的网站,目前无外乎是以Linux系统为基础搭建的运行环境。 * 本文假设你已经有一台Linux服务器或者windows上有虚拟机。如未满足请参考[[系统环境]] == 环境 == {| class="wikitable" |+ 环境 |- ! 名称 !! 版本 !! 备注 |- | 系统 || Debian 10.4 || Bullseye,或者ubuntu或者debian系操作系统 |- | IP地址 || 192.168.199.148 || 局域网IP地址 |- |…”
wikitext
text/x-wiki
运行供他人访问的网站或者自己局域网使用的网站,目前无外乎是以Linux系统为基础搭建的运行环境。
* 本文假设你已经有一台Linux服务器或者windows上有虚拟机。如未满足请参考[[系统环境]]
== 环境 ==
{| class="wikitable"
|+ 环境
|-
! 名称 !! 版本 !! 备注
|-
| 系统 || Debian 10.4 || Bullseye,或者ubuntu或者debian系操作系统
|-
| IP地址 || 192.168.199.148 || 局域网IP地址
|-
| Mediawiki版本 || 1.35.7 || 这个是LTS(长期支持版本),无论版本,安装过程基本一致
|-
| PHP || 7.4 || MediaWiki运行环境。这个一般有系统会跟随一个版本,Debian10.4上是7.4
|-
| mariadb || 10 || 数据库,存储数据。mysql和mariadb差不多
|-
| 安装路径 || /var/www/html || 这个可随意
|-
| 工具人 || debian || 会使用debian发行版的工具人,红帽系仅供参考
|-
| # || root提示 || 如无特殊说明,全站的#号都表示root用户命令行前缀提示
|}
== 安装MediaWiki运行使用环境 ==
本文参考官方文档。<ref>[https://www.mediawiki.org/wiki/Manual:Installation_requirements/zh 安装要求]</ref><ref>[https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki 安装MediaWiki]</ref>
=== 下载MediaWiki安装包 ===
[https://pan.baidu.com/s/1KbgY61fAxo7izxJ44uf46w 百度网盘提取码:haha]
上传到服务器。(假设在目录/root/目录下)
=== 安装PHP环境 ===
<pre>
# apt install php7.3-apcu php7.3-intl php7.3-mbstring php7.3-xml php7.3-mysql php7.3-fpm php7.3-json php7.3-gd
</pre>
* 不同的Debian(Ubuntu)可能php的版本不一样,输入php时候使用<code>Table</code>按键看会自动补全什么版本,替换就行了.
=== 安装数据库(MariaDB) ===
<pre>
# apt install mariadb-server
</pre>
=== 安装nginx ===
<pre>
# apt remove --purge apache2
# apt install nginx
</pre>
== 配置环境 ==
=== MediaWiki安装包 ===
将之前在root目录下的安装包解压到/var/www/html目录下
<pre>
# tar -xvf mediawiki-1.35.5.tar.gz -C /var/www/html
# mv /var/www/html/mediawiki-1.35.5 /var/www/html/mw
# chown -R www-data:www-data /var/www/html/mw
</pre>
=== 数据库 ===
==== 配置数据库 ====
刚装上的数据库是默认用户为root,密码无,所以直接使用下面的命令登录数据库,下面'''高亮'''的为我们需要输入的命令:
<syntaxhighlight lang="shell" line="true" highlight="2-3,7,11,15">
旁白:请以root登录并创建专门用于mediawiki使用的数据库fun,刚安装root没有密码直接回车。
# mysql -u root -p
MariaDB [(none)]> create database fun;
Query OK, 1 row affected (0.000 sec)
旁白:新建 mw 用户使用 123456 作为密码登录,且只能本地用户可以使用
MariaDB [(none)]> create user mw@'localhost' identified by '123456';
Query OK, 0 rows affected (0.000 sec)
旁白:授权给 wp用户 数据库fun的所有权限。
MariaDB [(none)]> grant all on fun.* to mw@'localhost' identified by '123456' with grant option;
Query OK, 0 rows affected (0.000 sec)
旁白:然后完成退出
MariaDB [(none)]> exit;
</syntaxhighlight>
==== 验证 ====
<syntaxhighlight lang="shell" line="true" highlight="2-3">
旁白:现在使用刚才新建的 mw 用户进行验证,并输入之前设置的密码。下面'''高亮'''的为我们需要输入的命令。
# mysql -u mw -p
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| fun |
+--------------------+
2 rows in set (0.000 sec)
MariaDB [(none)]> exit
</syntaxhighlight>
使用命令显示当前的数据库,正确的显示应该是上面的数据,如果没有看到'''fun'''这个数据库,则说明前面操作有误。
=== 配置nginx ===
* 在<code>/etc/nginx/sites-available</code>目录下添加配置文件,随意命名,比如这里使用<code>wiki.conf</code>,该文件的内容如下,语句前带#号的是注释。
<pre>
server {
listen 80 default_server;
listen [::]:80 default_server;
#旁白:这个是上门MediaWiki的解压目录
root /var/www/html/mw;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files uriuri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
}
</pre>
''如果想配置ShortURL请参考[[ShortURL配置]]。''
* <code>root</code>:后面添加MediaWiki的安装路径
* <code>index</code>:在后面添加index.php
* <code>server_name</code>:后面默认是_,则访问使用Linux的系统IP,如果是外网或者域名,则
** <code>server_name mw.istudylinux.cn;</code>
然后进入到<code>/etc/nginx/sites-enabled</code>目录
<pre>
# cd /etc/nginx/sites-enabled
# rm default
# ln -sf ../sites-available/wiki.conf .
</pre>
然后重启nginx
<pre>
# systemctl restart nginx
</pre>
现在可以打开网页,是否能够出现安装页面,如果没有或者报错,请检查上门的步骤。
== 网页端安装 ==
获取你Linux服务器的IP地址,然后在同一局域网里的浏览器打开该IP地址,比如这里是<code>192.168.199.148</code>
=== 进入安装页面 ===
[[File:mw_install1.png|700px|center|选择语言]]
<center>选择语言</center>
[[File:mw_install2.png|700px|center|环境检查]]
<center>环境检查</center>
=== WIKI数据库配置 ===
[[File:mw_install3.png|400px|center|WIKI数据库配置]]
[[File:mw_install4.png|400px|center|WIKI数据库配置]]
=== 网站名称,管理员设置 ===
[[File:mw_install5.png|700px|center|网站管理员设置]]
=== 版权,皮肤,扩展 ===
[[File:mw_install6.png|700px|center|版权,皮肤,扩展]]
[[File:mw_install7.png|600px|center|安装继续]]
=== 安装完成下载LocalSettings.php ===
[[File:mw_install8.png|600px|center|安装完成,下载LocalSettings.php]]
* 然后将其LocalSettings.php上传至服务器mw安装目录下,同index.php同级目录。
* 然后点击'''进入网页'''
[[File:mw_install9.png|600px|center|上传完成]]
== 参考 ==
74800802d194955e67e6abf4d7e2103dc1225d54
解析器函数
0
24
25
2022-10-20T14:07:03Z
Istudylinux
1
创建页面,内容为“== #expr == 这个函数计算数学表达式并返回计算值或者布尔结果。<ref name="pF">[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions/zh 帮助:扩展:解析器函数]</ref> * 1(true) * 0(false) {| class="wikitable" style="overflow:auto;" |+ #expr测试用例 |- | colspan='3' | <nowiki>{{#expr: 表达式}}</nowiki><br>完整的数学计算请参考[https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Calculation MediaWiki…”
wikitext
text/x-wiki
== #expr ==
这个函数计算数学表达式并返回计算值或者布尔结果。<ref name="pF">[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions/zh 帮助:扩展:解析器函数]</ref>
* 1(true)
* 0(false)
{| class="wikitable" style="overflow:auto;"
|+ #expr测试用例
|-
| colspan='3' | <nowiki>{{#expr: 表达式}}</nowiki><br>完整的数学计算请参考[https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Calculation MediaWiki计算]
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#expr: 1 and -1}},{{#expr: 1 and 0}},{{#expr: 2 and 3}}</nowiki></code> || {{#expr: 1 and -1}},{{#expr: 1 and 0}},{{#expr: 2 and 1}} || 逻辑与,非0以外的数都是true(1),false(0)
|-
| <code><nowiki>{{#expr: 1 or -1}},{{#expr: 1 or 0}},{{#expr: 2 or 3}}</nowiki></code> || {{#expr: 1 or -1}},{{#expr: 1 or 0}},{{#expr: 2 or 3}} || 逻辑或,非0以外的数都是true(1),false(0)
|-
| <code><nowiki>{{#expr: 1>2}},{{#expr: 1<=2}}</nowiki></code> || {{#expr: 1>2}},{{#expr: 1<=2}} || 逻辑判断大小,非0以外的数都是true(1),false(0)
|-
| <code><nowiki>{{#expr: (1+1*8/2) mod 3}}</nowiki></code> || {{#expr: (1+1*8/2) mod 3}} || 混合运算
|-
| <code><nowiki>{{#expr: pi}},{{#expr: 1e3}}</nowiki></code> || {{#expr: pi}},{{#expr: 1e3}} || π,科学计数
|-
| <code><nowiki>{{#expr: sin30}},{{#expr: sin(30*pi/180)}}</nowiki></code> || {{#expr: sin30}},{{#expr: sin(30*pi/180)}} || 正弦
|-
| <code><nowiki>{{#expr: 1/3 round 5}},{{#expr: 1/6 round 5}}</nowiki></code> || {{#expr: 1/3 round 5}},{{#expr: 1/6 round 5}} || round取整,最后的小数大于5会区6,否则使用原数
|-
| <code><nowiki>{{#expr: 1234.5678 round -2}},{{#expr: 1234.5678 round 2}}</nowiki></code> || {{#expr: 1234.5678 round -2}},{{#expr: 1234.5678 round 2}} || -2往小数点左边取2位,正数往小数点右边取2位
|-
| <code><nowiki>{{#expr: {{NUMBEROFUSERS}}}},{{#expr: {{NUMBEROFUSERS}}+5}}</nowiki></code> || {{#expr: {{NUMBEROFUSERS}}}},{{#expr: {{NUMBEROFUSERS}}+5}} || 配合魔术字
|-
| <pre>{{#expr: 45,000 + 100}}
{{#expr: 2 =}}</pre> || {{#expr: 45,000 + 100}}<br>{{#expr: 2 =}} || 错误使用会出现提示信息
|}
== #ifexpr ==
此函数会判断数学表达式并根据其布尔值结果返回对应的字符串。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #ifexpr测试用例
|-
| colspan='3' | <nowiki>{{#ifexpr: expression | value if true | value if false }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#ifexpr: {{#expr: 2 > 1}} | yes | no }}
{{#ifexpr: 2 > 1 | yes | no }}
</pre> || {{#ifexpr: {{#expr: 2 > 1}} | yes |no}}<br>{{#ifexpr: 2 > 1 | yes | no }} ||
|-
| <pre>{{#ifexpr: {{#expr: 2+1*8 }} | yes | no }}
{{#ifexpr: 2+1*8 | yes | no }}
</pre> || {{#ifexpr: {{#expr: 2+1*8 }} | yes |no}}<br>{{#ifexpr: 2+1*8 | yes | no }} ||
|-
| <pre>{{#ifexpr: | yes | no }}
{{#ifexpr: 0 | yes | no }}
{{#ifexpr: 1 | yes | no }}
</pre> || {{#ifexpr: | yes | no }}<br>{{#ifexpr: 0 | yes | no }}<br>{{#ifexpr: 1 | yes | no }} ||
|}
== #if ==
这个函数判断一个字符串是否为空。只包含空格的字符串被视为空字符串。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #if测试用例
|-
| colspan='3' | <nowiki>{{#if: 测试字符串 | 试字符串非空时的取值 | 测试字符串为空或仅包含空白字符时的取值 }}</nowiki><br/><nowiki>{{#if: 参数1 | 参数2 | 参数3 }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#if:| yes |no}}</nowiki></code> || {{#if:|yes|no}} || 空值
|-
| <code><nowiki>{{#if: |yes |no}}</nowiki></code> || {{#if: | yes |no}} || 参数输入的是空格
|-
| <pre>{{#if:
|yes|no}}</pre> || {{#if:
|yes |no}} || 参数输入的是空格,回车等
|-
| <code><nowiki>{{#if:isl| yes |no}}</nowiki></code> || {{#if:isl|yes|no}} ||
|-
| <code><nowiki>{{#if: 1==2 | yes | no }}</nowiki></code> || {{#if: 1==2 | yes | no }} ||
|-
| <code><nowiki>{{#if: 0 |yes | no }}</nowiki></code> || {{#if: 0 |yes | no }} || 参数1都是当字符串处理
|-
| <code><nowiki>{{#if: isl | yes }}</nowiki></code> || {{#if: isl | yes }} || 最后一个参数可以忽略
|-
| <code><nowiki>{{#if: | | no }}</nowiki></code> || {{#if: | |no }} ||
|-
| <code><nowiki>{{#if:{{#if:isl|yes|no}}|里面返回字符串|里面返回空}}</nowiki></code> || {{#if:{{#if:isl|yes|no}}|里面返回字符串|里面返回空}} || 嵌套使用
|-
| <code><nowiki>{{#if:{{#if:isl| |no}}|里面返回字符串|里面返回空}}</nowiki></code> || {{#if:{{#if:isl||no}}|里面返回字符串|里面返回空}} || 嵌套使用
|}
== #ifeq ==
这个函数判断两个输入字符串是否相同,并根据结果输出两个字符串的其中一个。 如果需要更多的比较和输出字符串,请考虑使用[[##switch|#switch]]。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #ifeq测试用例
|-
| colspan='3' | <nowiki>{{#ifeq: 字符串1 | 字符串2 | 两个字符串相等 | 不相等 }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#ifeq: 01 | 1 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:01|1|相等|不相等}} || 如果两个参数都是数字,进行数字比较
|-
| <code><nowiki>{{#ifeq: 0 | -0 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:0|-0|相等|不相等}} || 如果两个参数都是数字,进行数字比较
|-
| <code><nowiki>{{#ifeq: 1e3 | 1000 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:1e3|1000|相等|不相等}} ||
|-
| <code><nowiki>{{#ifeq: {{#expr:10^3}}| 1000 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:{{#expr:10^3}}|1000|相等|不相等}} ||
|-
| <code><nowiki>{{#ifeq: "01" | "1" | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:"01"|"1"|相等|不相等}} ||
|-
| <code><nowiki>{{#ifeq: 真的 | 假的 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq: 真的 | 假的 | 相等 | 不相等 }}</code> ||
|-
| <code><nowiki>{{#ifeq: Abc | abc |相等| 不相等 }}</nowiki></code> || {{#ifeq: Abc | abc |相等| 不相等 }} ||
|-
| <code><nowiki>{{#ifeq: 10^3 | 1000 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq: 10^3 | 1000 | 相等 | 不相等 }} ||
|-
| <code><nowiki>{{#ifeq: </nowiki><nowiki><nowiki>foo</nowiki></nowiki> <nowiki>| <nowiki>foo</nowiki></nowiki> <nowiki>| 相等 | 不相等}}</nowiki></code> || {{#ifeq: <nowiki>foo</nowiki> | <nowiki>foo</nowiki>| 相等 | 不相等 }} || 每个标签在解析的时候回自动添加相关的独立标记
|-
| colspan='3' | 其他的比较如{{FULLPAGENAME}},模板
|}
== #iferror ==
这个函数接收一个输入字符串,返回两个结果中的一个。如果输入字符串包含一个由其他解析器函数(比如[[##expr|#expr]]、[[##time|#time]]和[[##rel2abs|#rel2abs]])、模板错误(比如模板循环和模板递归)或其他解析器“软错误”生成的<code>class="error"</code>的HTML对象,那么视为真。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #iferror测试用例
|-
| colspan='3' | <nowiki>{{#iferror: test string | value if error | value if correct }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#iferror: {{#expr: 1 + 2 }} | 用法错误 | 用法正确 }}
{{#iferror: {{#expr: 1 + 2 }} | 用法错误 }}
</pre> || {{#iferror: {{#expr: 1 + 2 }} | 用法错误 | 用法正确 }}<br>{{#iferror: {{#expr: 1 + 2 }} | 用法错误 }} ||
|-
| <code><nowiki>{{#iferror: {{#expr: 2 =}} | 用法错误 | 用法正确 }}</nowiki></code> || {{#iferror: {{#expr: 2 =}} | 用法错误 | 用法正确 }} ||
|-
| <code><nowiki>{{#iferror: <strong class="error">a</strong> | 标签带error | 标签不带error }}</nowiki></code> || {{#iferror: <strong class="error">a</strong> | 标签带error | 标签不带error }} ||
|-
| <code><nowiki> {{#iferror: {{#expr: 2 =}} | 解析结果带error | 解析结果带不带error }}</nowiki></code> || {{#iferror: {{#expr: 2 =}} | 解析结果带error | 解析结果带不带error }} ||
|}
== #rel2abs ==
这个函数将文件的相对路径转换为绝对路径。<ref name="pF" />
* <code>.</code>本级目录
* <code>../</code>上级目录
* <code>/标题</code>下级目录
{| class="wikitable" style="overflow:auto;"
|+ #rel2abs测试用例
|-
| colspan='3' | <nowiki>{{#rel2abs: path }}</nowiki><br><nowiki>{{#rel2abs: path | base path }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#rel2abs: {{PAGENAME}} |模板:a/b/c }}
{{#rel2abs: {{PAGENAME}}}}</pre> || {{#rel2abs: {{PAGENAME}} |模板:a/b/c }}<br>{{#rel2abs: {{PAGENAME}}}} ||
|-
| <pre>{{#rel2abs: ./{{PAGENAME}} |模板:a/b/c }}
{{#rel2abs: /{{PAGENAME}} |模板:a/b/c }}</pre> || {{#rel2abs: ./{{PAGENAME}} |模板:a/b/c }}<br>{{#rel2abs: /{{PAGENAME}} |模板:a/b/c }} || ./和/是一样的
|-
| <pre>{{#rel2abs: ../{{PAGENAME}} |模板:a/b/c }}
{{#rel2abs: ../../{{PAGENAME}} |模板:a/b/c }}
{{#rel2abs: ../../../{{PAGENAME}} |模板:a/b/c }}
</pre> || {{#rel2abs: ../{{PAGENAME}} |模板:a/b/c }}<br>{{#rel2abs: ../../{{PAGENAME}} |模板:a/b/c }}<br>{{#rel2abs: ../../../{{PAGENAME}} |模板:a/b/c }} ||
|-
| <pre>{{#rel2abs: ../../ |模板:a/b/c }}
{{#rel2abs: .././ |模板:a/b/c }}
{{#rel2abs: .././../ |模板:a/b/c }}
</pre> || {{#rel2abs: ../../ |模板:a/b/c }}<br>{{#rel2abs: .././ |模板:a/b/c }}<br>{{#rel2abs: .././../ |模板:a/b/c }} ||
|-
| <pre>{{#rel2abs: ../../ |模板:a/b/c }}
{{#rel2abs: ../../../ |模板:a/b/c }}
{{#rel2abs: ../../../../ |模板:a/b/c }}
</pre> || {{#rel2abs: ../../ |模板:a/b/c }}<br>{{#rel2abs: ../../../ |模板:a/b/c }}<br>{{#rel2abs: ../../../../ |模板:a/b/c }} ||
|}
== #ifexist ==
这个函数将一组字符串作为输入,并翻译成页面标题,然后根据在本地wiki上是否存在该页面而返回对应的值。<ref name="pF" />尽量少用。
'''''被视为“高开销(expensive)解析器函数”,每个页面调用这类函数的次数(包括包含于嵌入式模板的函数)存在一个限制。'''''
{| class="wikitable" style="overflow:auto;"
|+ #ifexist测试用例
|-
| colspan='3' | <nowiki>{{#ifexist: 页面名称 | 页面存在结果 | 页面不存在结果 }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#ifexist: 模板:我的模板 | 页面存在 | 页面不存在 }}</nowiki></code> || {{#ifexist: 模板:我的模板 | 页面存在 | 页面不存在 }} ||
|-
| <code><nowiki>{{#ifexist: File:MediaWiki.png | 文件存在 | 文件不存在 }}</nowiki></code> || {{#ifexist:File:MediaWiki.png | 文件存在 | 文件不存在 }} ||
|-
| <code><nowiki>{{#ifexist: Mediawiki:common.css | 页面存在 | 页面存在 }}</nowiki></code> || {{#ifexist: Mediawiki:common.css | 文件存在 | 文件不存在 }} || 只要是标题都可以
|}
== #switch ==
该函数将一个输入值同若干个测试用例(test cases)做比较,如果找到匹配,返回有关联的字符串。<ref name="pF"/>
语法:
<pre>{{#switch: comparison string
| case = result
| case = result
| ...
| case = result
| default result
}}
</pre>
=== 默认值 ===
{| class="wikitable" style="overflow:auto;"
|+ #switch默认值
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#switch: 1 | 1 = 为1 | 2 = 为2 | 其他值 }}
{{#switch: 3 | 1 = 为1 | 2 = 为2 | 其他值 }}</pre> || 为1<br>其他值 || 默认值通常写在最后
|-
| <pre>{{#switch: 1
| 1 = 为1
| #default = 其他值
| 2 = 为2 }}</pre> || 其他值 || 使用<code>#default</code>可以出现在任意位置
|-
| <pre>
{{#switch: 1
| 1 = 为1
| 2 = 为2 }}</pre> || || 不写默认值不返回结果
|}
=== 分组 ===
{| class="wikitable" style="overflow:auto;"
|+ #switch分组
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#switch: 2
| 1
| 2
| 3 = 小于等于3
| 4
| 5
| 6 = 大于3,小于7
| 不在区间范围,请输入1-6
}}</pre> || 小于等于3 || 1,2,3为一组,4,5,6为一组
|}
=== 比较 ===
若被比较字符串和测试用例字符串都是数字,那么按照数值进行比较;反之若存在一个非纯数字符串,都会按照字符串比较规则进行。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #switch比较
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#switch: | = Nothing | 3 = 结果为3 | 其他值 }}</pre> || Nothing || 可以为空
|-
| <pre>{{#switch: 1+2 | 2 = 结果为2 | 3 = 结果为3 | 其他值 }}</pre> || 其他值 || 作为字符串“1+2”
|-
| <pre>{{#switch: {{#expr:1+2}} | 2 = 结果为2 | 3 = 结果为3 | 其他值 }}</pre> || 结果为3 || 计算后再比较
|}
=== 等号 ===
{| class="wikitable" style="overflow:auto;"
|+ #switch等号
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#switch: 1=2
| 1=2 = raw
| 1{{=}}2 = template
| default
}}</pre> || template || 使用模板将“=”号包含
|-
| <pre>{{#switch: 1=2
| 1&#61;2 = html
| default
}}</pre> || html || 使用HTML标识码<code><nowiki>&#61;</nowiki></code>
|}
=== 使用参数 ===
一般是用在模板里。
<pre>
{{#switch: {{{1}}}
| 1 = 为1
| 2 = 为2
| 其他值
}}</pre>
=== 和#ifeq的转换 ===
* <code><nowiki>{{#switch:{{{1}}} |condition1=branch1 |condition2=branch2 |condition3=branch3 |branch4}}</nowiki></code>
等效于
* <code><nowiki>{{#ifeq:{{{1}}}|condition1 |branch1 |{{#ifeq:{{{1}}}|condition2 |branch2 |{{#ifeq:{{{1}}}|condition3 |branch3 |branch4}}}}}}</nowiki></code>
比如:
<pre>
{{#switch:abc
|Abc = 输入为Abc
|abc = 输入为abc
|输入未知
}}
等价于:
{{#ifeq: abc | Abc | 输入为Abc | {{#ifeq: abc | abc | 输入为abc | 输入未知 }} }}
</pre>
== #time ==
该解析器函数接收一个(公历的)日期或者时间,并根据给定的语法将其格式化。可以指定日期/时间对象,页面最后被渲染为HTML时的时间。<ref name="pF" />更加详细的参考[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions/zh##time 官网#time]。
* <nowiki>{{#time: format string }}</nowiki>
* <nowiki>{{#time: format string | date/time object }}</nowiki>
* <nowiki>{{#time: format string | date/time object | language code }}</nowiki>
* <nowiki>{{#time: format string | date/time object | language code | local }}</nowiki>
** date/time object是使用的[https://www.php.net/function.strtotime PHP函数strtotime]的日期格式
{| class="wikitable" style="overflow:auto;"
|+ #time
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#time: Y-m-d }}</nowiki></code> || {{#time: Y-m-d }}
| rowspan='4' |
* '''Y:'''年,返回4位数的年份
* '''y:'''年,返回2位数的年份
* '''n:'''月,9,12
* '''m:'''月,09,12,0填充
* '''j:'''日,9,12
* '''d:'''日,09,12,0填充
* '''z:'''年内的第几天,1月1日是第0天
* '''g:'''12小时制,7点
* '''h:'''12小时制,07点,0填充
* '''G:'''24小时制,7点
* '''H:'''24小时制,07点,0填充
* '''i:'''分
* '''s:'''秒
* '''D:'''星期几,{{#time:D}}
* '''N:'''星期几,{{#time:N}}
* '''W:'''周数,{{#time:W}}
|-
| <code><nowiki>{{#time: y年m月d日 H:i:s }}</nowiki></code> || {{#time: y年m月d日 H:i:s }}
|-
| <code><nowiki>{{#time: y年m月d日 H:i:s |+8 hours}}</nowiki></code> || {{#time: y年m月d日 H:i:s |+8 hours}}
|-
| <code><nowiki>{{#time: Y年的第W周,第z天}}</nowiki></code> || {{#time: Y年的第W周,第z天}}
|}
== #timel ==
该函数等价于{{#time: ... }},其中local参数设置为true,因此总是使用wiki的本地时间。<ref name="pF" />更加详细的参考[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions/zh##time 官网#time]。
* <nowiki>{{#timel: format string }}</nowiki>
* <nowiki>{{#timel: format string | date/time object }}</nowiki>
* <nowiki>{{#timel: format string | date/time object | language code }}</nowiki>
** date/time object是使用的[https://www.php.net/function.strtotime PHP函数strtotime]的日期格式
{| class="wikitable" style="overflow:auto;"
|+ #timel
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#timel: Y-m-d }}</nowiki></code> || {{#timel: Y-m-d }}
| rowspan='4' | 其他语法同[[##time|#time]]
|-
| <code><nowiki>{{#timel: y年m月d日 h:i:s }}</nowiki></code> || {{#timel: y年m月d日 h:i:s }}
|-
| <code><nowiki>{{#timel: y年m月d日 H:i:s}}</nowiki></code> || {{#timel: y年m月d日 H:i:s}}
|-
| <code><nowiki>{{#timel: Y年的第W周,第z天}}</nowiki></code> || {{#timel: Y年的第W周,第z天}}
|}
== #titleparts ==
此函数将页面标题根据斜杠划分成多个分段,然后输出返回这些分段中的部分。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #titleparts
|-
| colspan='3' | <nowiki>{{#titleparts: 页面名称 | 需要返回的分段数量 | 要返回的第一个分段 }}</nowiki><br><code>需要返回的分段数量</code>默认为0<br><code>要返回的第一个分段</code>未指定或者是0则默认为1
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e }}</nowiki></code> || {{#titleparts: a/b/c/d/e}} || 返回的首字母有大写
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e|0|2 }}</nowiki></code> || {{#titleparts: a/b/c/d/e|0|2 }} || 返回的首字母没有大写
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | 2 | 2 }}</nowiki></code> || {{#titleparts: a/b/c/d/e | 2 | 2 }} ||
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | | 2 }}</nowiki></code> || {{#titleparts:a/b/c/d/e | | 2 }} ||
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | -1 }}</nowiki></code> || {{#titleparts: a/b/c/d/e | -1 }} || 从字符串的末尾剥离1段
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | -2 }}</nowiki></code> || {{#titleparts: a/b/c/d/e | -4 }} || 从字符串的末尾剥离4段
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | -1 | 2 }}</nowiki></code> || {{#titleparts: a/b/c/d/e | -1 | 2 }} || 从字符串的末尾剥离一段,然后返回第二段及以后的段
|-
| <code><nowiki>{{#titleparts:a/b/c/d/e | -1 | -2 }}</nowiki></code> || Talk:a/b/c/d/e | -1 | -2 }} || 从倒数第二个元素开始复制;从字符串的末尾剥离一段
|}
== 字符串函数 ==
=== #len ===
<code>#len</code>函数返回指定字符串的长度。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#len:string}}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#len:abcedefg}}</nowiki></code> || {{#len:abcedefg}} ||
|-
| <code><nowiki>{{#len:中文}}</nowiki></code> || {{#len:中文}} || 一个文字算作1
|-
| <code><nowiki>{{#len: a b }}</nowiki></code> || {{#len: a b }} || ab之间有3个空格,前后的空格不计算
|-
| <code><nowiki>{{#len:<nowiki></nowiki>This is a <nowiki></nowiki></nowiki>test}}</code> || {{#len:<nowiki>This is a </nowiki>test}} || nowiki标签之间的都为0
|-
| <code><nowiki>{{#len:&nbsp;}}</nowiki></code> || {{#len: }} || HTML字符这种直接计算,例子中为空格
|}
=== #pos ===
<code>#pos</code>函数返回给定搜索词在字符串中的位置。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#pos:string|搜索词|offset}}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#pos:I am good.|good}}</nowiki></code> || {{#pos:I am good.|good}} || 从0开始数,I是0
|-
| <code><nowiki>{{#pos:I am good.|good|6}}</nowiki></code> || {{#pos:I am good.|good|6}} || 没找到就返回空
|-
| <code><nowiki>{{#pos:I am good.|o}}</nowiki></code> || {{#pos:I am good.|o}} || 只返回一个
|-
| <code><nowiki>{{#pos:I am good.| o | 7}}</nowiki></code> || {{#pos:I am good.|o |7}} || 跳过第一个o
|}
=== #rpos ===
<code>#rpos</code>函数返回给定搜索词在字符串中的'''最后的'''位置。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#rpos:string|搜索词}}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#rpos:I am good.| o }}</nowiki></code> || {{#rpos:I am good.|o}} || 仅返回后面的一个o
|-
| <code><nowiki>{{#rpos:I am good.| z }}</nowiki></code> || {{#rpos:I am good.|z}} || 没找到返回-1
|}
=== #sub ===
<code>#sub</code>函数返回指定字符串中的子字符串(substring)。 <ref name="pF" />
{| class="wikitable"
|-
| 正向数 ||0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9
|-
| 负向数 || 10 || 9 || 8 || 7 || 6 || 5 || 4 || 3 || 2 || 1
|-
| 字符串 || I || || a || m || || g || o || o || d || .
|}
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#sub:string|start|length}}</nowiki><br>
* start:为正数以0开头,负数以1开头
* length:正数正向数length个,负数反向切掉(-length)个
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#sub:I am good.|2|2}}</nowiki></code> || {{#sub:I am good.|2|2}} || “am good.”,取2个字符
|-
| <code><nowiki>{{#sub:I am good.|4|-2}}</nowiki></code> || {{#sub:I am good.|4|-2}} || “ good.”,-2就是忽略掉“d.”,这里注意空格被删掉了
|-
| <code><nowiki>{{#sub:I am good.|5|-2}}</nowiki></code> || {{#sub:I am good.|5|-2}} || “good.”,-2就是忽略掉“d.”,跟上面一样
|-
| <code><nowiki>{{#sub:I am good.|-3|2 }}</nowiki></code> || {{#sub:I am good.|-3|2 }} || “od.”,2正向取od
|-
| <code><nowiki>{{#sub:I am good.|-3|-1 }}</nowiki></code> || {{#sub:I am good.|-3 |-1 }} || “od.”,-1忽略掉“.”,取od,结果同上
|-
| <code><nowiki>{{#sub:I am good.|5|-6 }}</nowiki></code> || {{#sub:I am good.|5|-6 }} || 超过返回空
|-
|<code><nowiki>{{#sub:</nowiki><nowiki><nowiki></nowiki>This is a <nowiki></nowiki><nowiki><nowiki>test|1}}</code></nowiki> || {{#sub:<nowiki>This is a </nowiki>test|1}} || <span style="color:red;">存疑</span>
|}
=== #count ===
<code>#count </code>函数返回指定子字符串在提供的文本中出现的次数。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#count:string|substring}}</nowiki><br>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#count:I am good.|am}}</nowiki></code> || {{#count:I am good.|am}} ||
|-
| <code><nowiki>{{#count:I am good.|ama}}</nowiki></code> || {{#count:I am good.|ama}} ||
|}
=== #replace ===
<code>#replace</code>函数返回指定的字符串,并将所有搜索词出现的地方替换成替换词。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#replace:string|search term|replacement term}}</nowiki><br>
* 如果search term未指定或者为空,则搜索单个空格。
* 如果replacement term未指定或者为空,则所有search term都会从string中移除。
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#replace:I am good.|am | was}}</nowiki></code> || {{#replace:I am good.|am | was}} ||
|-
| <code><nowiki>{{#replace:I am good.|o|O }}</nowiki></code> || {{#replace:I am good.|o|O }} ||
|-
| <code><nowiki>{{#replace:I am good.||X }}</nowiki></code> || {{#replace:I am good.||X }} || 未指定要搜索的子串
|-
| <code><nowiki>{{#replace:I am good.|am| }}</nowiki></code> || {{#replace:I am good.|am| }} || 未指定要替换的内容
|}
=== #explode ===
<code>#explode</code>函数将指定的字符串分成多个片段,返回其中一段。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#explode:string|delimiter|position|limit}}</nowiki><br>
* position:从0开始
* limit一般不用
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#explode:I am good.| am | 1}}</nowiki></code> || {{#explode:I am good.| am | 1}} || 可以是多个字符
|-
| <code><nowiki>{{#explode:I am good.| am | 3}}</nowiki></code> || {{#explode:I am good.| am | 3}} || 超过了返回空
|-
| <code><nowiki>{{#explode:a/b/c/d |/|2 }}</nowiki></code> ||{{#explode:a/b/c/d |/|2 }} || 可以是单个字符
|-
| <code><nowiki>{{#explode:a/b/c/d |/|-1 }}</nowiki></code> ||{{#explode:a/b/c/d |/|-1 }} || 负数倒着取,从1开始
|-
| <code><nowiki>{{#explode:1oo234 |o|1 }}</nowiki></code> ||{{#explode:1oo234 |o|1 }} || 两个相邻的delimiter,则中间取空格0(1),1( ),2(234)
|-
| <code><nowiki>{{#explode:1oo234 |o|2}}</nowiki></code> ||{{#explode:1oo234 |o|2 }} || 两个相邻的delimiter,则中间取空格0(1),1( ),2(234)
|}
=== #urldecode ===
<code>#urldecode</code>函数将“[https://zh.wikipedia.org/wiki/%E7%99%BE%E5%88%86%E5%8F%B7%E7%BC%96%E7%A0%81 URL编码]”的转义字符转换回原来的可读字符。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#urldecode:URL值}}</nowiki><br>
* position:从0开始
* limit一般不用
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#urldecode:https://zh.wikipedia.org/wiki/%E7%99%BE%E5%88%86%E5%8F%B7%E7%BC%96%E7%A0%81}}</nowiki></code> || {{#urldecode:https://zh.wikipedia.org/wiki/%E7%99%BE%E5%88%86%E5%8F%B7%E7%BC%96%E7%A0%81}} || 转义
|}
== 参考 ==
<references />
a7ab7b0fe85110621563a28a327cd000300c3185
前端:Mediawiki首页
3002
25
26
2022-10-22T07:59:18Z
Istudylinux
1
创建页面,内容为“== 说明 == 要想使用该内容,有如下依赖: * 扩展:模板样式(TemplateStyles) * 多张图片,用于更改对应box的<code>Mediawiki.png</code> 来源:[https://www.mediawiki.org/w/index.php?title=Template:Main_page Template:Main_page] == 代码 == '''代码目录结构以名称为主。''' === 模板:首页 === <syntaxhighlight lang="html" line="true"> <templatestyles src="模板:首页/styles.css" /> <div aria-hidden="true" role="p…”
wikitext
text/x-wiki
== 说明 ==
要想使用该内容,有如下依赖:
* 扩展:模板样式(TemplateStyles)
* 多张图片,用于更改对应box的<code>Mediawiki.png</code>
来源:[https://www.mediawiki.org/w/index.php?title=Template:Main_page Template:Main_page]
== 代码 ==
'''代码目录结构以名称为主。'''
=== 模板:首页 ===
<syntaxhighlight lang="html" line="true">
<templatestyles src="模板:首页/styles.css" />
<div aria-hidden="true" role="presentation">
<div style="clear: both;"></div>
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题1</span></h3>
<div id="mainpage-admins" title="标题1" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题2</span></h3>
<div id="mainpage-users" title="标题2" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题3</span></h3>
<div id="mainpage-devs" title="标题3" class="items">
一些描述性的话。
* 条目1
* 条目2
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题4</span></h3>
<div id=mainpage-help-contribute" title="标题4" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题5</span></h3>
<div id="mainpage-news" title="标题5" class="items">
<div style="margin: auto; vertical-align:top; text-align:right}}">
<div class="mainpage_boxcontents_small">
* 条目1
* 条目2
</div>
<span class="plainlinks">[# <span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]</span>
<span class="plainlinks">[[File:Mediawiki.png|text-bottom|16px|link=https://www.facebook.com/MediaWikiProject]][[File:Mediawiki.png|text-bottom|17px|link=#]]</span>
</div>
</div>
</div>
</div>
</div>
__NOTOC__
</syntaxhighlight>
=== 模板:首页/styles.css ===
<syntaxhighlight lang="css" line="true" >
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}
</syntaxhighlight>
cf610ba4ba335749c4eae730966fa8db89172fe0
27
26
2022-10-22T08:06:11Z
Istudylinux
1
/* 模板:首页 */
wikitext
text/x-wiki
== 说明 ==
要想使用该内容,有如下依赖:
* 扩展:模板样式(TemplateStyles)
* 多张图片,用于更改对应box的<code>Mediawiki.png</code>
来源:[https://www.mediawiki.org/w/index.php?title=Template:Main_page Template:Main_page]
== 代码 ==
'''代码目录结构以名称为主。'''
=== 模板:首页 ===
<syntaxhighlight lang="html" line="true">
<templatestyles src="模板:首页/styles.css" />
<div aria-hidden="true" role="presentation">
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题1</span></h3>
<div id="mainpage-admins" title="标题1" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题2</span></h3>
<div id="mainpage-users" title="标题2" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题3</span></h3>
<div id="mainpage-devs" title="标题3" class="items">
一些描述性的话。
* 条目1
* 条目2
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题4</span></h3>
<div id=mainpage-help-contribute" title="标题4" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题5</span></h3>
<div id="mainpage-news" title="标题5" class="items">
<div style="margin: auto; vertical-align:top; text-align:right}}">
<div class="mainpage_boxcontents_small">
* 条目1
* 条目2
</div>
<span class="plainlinks">[# <span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]</span>
<span class="plainlinks">[[File:Mediawiki.png|text-bottom|16px|link=https://www.facebook.com/MediaWikiProject]][[File:Mediawiki.png|text-bottom|17px|link=#]]</span>
</div>
</div>
</div>
</div>
</div>
__NOTOC__
</syntaxhighlight>
=== 模板:首页/styles.css ===
<syntaxhighlight lang="css" line="true" >
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}
</syntaxhighlight>
d322907fb9761b08eebb725722ef89ab7443e70f
28
27
2022-10-28T07:39:17Z
Istudylinux
1
wikitext
text/x-wiki
== 说明 ==
要想使用该内容,有如下依赖:
* 扩展:模板样式(TemplateStyles)
* 多张图片,用于更改对应box的<code>Mediawiki.png</code>
来源:[https://www.mediawiki.org/w/index.php?title=Template:Main_page Template:Main_page]
== 代码 ==
'''代码目录结构以名称为主。'''
=== 模板:首页 ===
<syntaxhighlight lang="html" line="true">
<templatestyles src="模板:首页/styles.css" />
<div aria-hidden="true" role="presentation">
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题1</span></h3>
<div id="mainpage-admins" title="标题1" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题2</span></h3>
<div id="mainpage-users" title="标题2" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题3</span></h3>
<div id="mainpage-devs" title="标题3" class="items">
一些描述性的话。
* 条目1
* 条目2
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题4</span></h3>
<div id=mainpage-help-contribute" title="标题4" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题5</span></h3>
<div id="mainpage-news" title="标题5" class="items">
<div style="margin: auto; vertical-align:top; text-align:right}}">
<div class="mainpage_boxcontents_small">
* 条目1
* 条目2
</div>
<span class="plainlinks">[# <span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]</span>
<span class="plainlinks">[[File:Mediawiki.png|text-bottom|16px|link=https://www.facebook.com/MediaWikiProject]][[File:Mediawiki.png|text-bottom|17px|link=#]]</span>
</div>
</div>
</div>
</div>
</div>
__NOTOC__
</syntaxhighlight>
=== 模板:首页/styles.css ===
<syntaxhighlight lang="css" line="true" >
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}
</syntaxhighlight>
[[分类:前端]]
6efb4360d8964ebbdd129cb9061273053ec300f5
模板:Extension DPL
10
26
29
2022-10-28T07:40:22Z
Istudylinux
1
创建空白页面
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:网站
10
27
31
2022-10-28T07:59:34Z
Istudylinux
1
创建页面,内容为“<noinclude> 这是“网站”模板。调用它时应该采用如下格式: <pre> {{网站 |网站Logo= |中文名称= |英文名称= |网站网址= |网站分类= |使用软件= |网站性质= |用户权限= |内容许可= }} </pre> 编辑页面以阅读模板文本。 {{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,…”
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
{{PAGENAME}}是使用'''{{{使用软件|}}}'''软件框架的WIKI网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质
| {{{网站性质|}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{Box/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{Box/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}
</includeonly>
070b28a4b205dcbc4465e89c486ebb20c498770b
33
31
2022-10-28T08:09:28Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
{{PAGENAME}}是使用'''{{{使用软件|}}}'''软件框架的WIKI网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质
| {{{网站性质|}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}
</includeonly>
8facbb49e9f4e10a1f29d38feb5f1e68d756247d
46
33
2022-10-28T08:15:51Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
{{PAGENAME}}是使用'''{{{使用软件|}}}'''软件框架的WIKI网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|0,WIKI网站;1,WIKI农场]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}
</includeonly>
dd9eb4ef02f465c98a8b42a4270d3ea912e9980b
48
46
2022-10-28T08:18:20Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
{{PAGENAME}}是使用'''{{{使用软件|}}}'''软件框架的WIKI网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|0,WIKI网站;1,WIKI农场]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
da1686ed8c9d5ef4c4468b79f0c3cb9be901e268
49
48
2022-10-28T08:18:56Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
{{PAGENAME}}是使用'''{{{使用软件|MediaWiki}}}'''软件框架的WIKI网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|0,WIKI网站;1,WIKI农场]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
565f0f2858c0c157c9cd63a9ff76d9bba82af230
50
49
2022-10-28T08:21:02Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
{{PAGENAME}}是一个{{{网站分类|}}}网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人,公司]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
b51411f1398ca2cc3724d087644e6c75963e5efa
52
50
2022-10-28T08:22:08Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
'''{{PAGENAME}}'''是一个[[分类:{{{网站分类|}}}|{{{网站分类|}}}]]类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人,公司]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
2809a43fab0db292bc0db096f1e790eae849519d
模板:网站/软件
10
28
34
2022-10-28T08:10:16Z
Istudylinux
1
创建页面,内容为“{{#switch:{{{1}}} |MediaWiki= [[File:MediaWiki.png|20px|middle|link=https://www.mediawiki.org/|MediaWiki]] {{{1}}} |DokuWiki= [[File:DokuWiki.png|20px|middle|link=https://www.dokuwiki.org/dokuwiki|DokuWiki]] {{{1}}} | }}”
wikitext
text/x-wiki
{{#switch:{{{1}}}
|MediaWiki= [[File:MediaWiki.png|20px|middle|link=https://www.mediawiki.org/|MediaWiki]] {{{1}}}
|DokuWiki= [[File:DokuWiki.png|20px|middle|link=https://www.dokuwiki.org/dokuwiki|DokuWiki]] {{{1}}}
|
}}
2defc69a8f0e766429b6b97a9566aa339b13bd56
文件:Icon-help-20.png
6
29
35
2022-10-28T08:11:58Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:网站/内容许可
10
30
36
2022-10-28T08:12:29Z
Istudylinux
1
创建页面,内容为“{{#switch: {{{1}}} | CC0 = [[file:cc-0.png|60px|middle|link=版权和许可证]] <span title="不受限制地在全球范围内发布内容">{{{1}}}</span> | BY = [[file:cc-by.png|60px|middle|link=版权和许可证]] <span title="署名(BY)">{{{1}}}</span> | BY-SA = [[file:cc-by-sa.png|60px|middle|link=版权和许可证]] <span title="署名(BY)-相同方式共享(SA)">{{{1}}}</span> | BY-NC = file:cc-by-nc.png|60px|middle|link=版权和许可…”
wikitext
text/x-wiki
{{#switch: {{{1}}}
| CC0 = [[file:cc-0.png|60px|middle|link=版权和许可证]] <span title="不受限制地在全球范围内发布内容">{{{1}}}</span>
| BY = [[file:cc-by.png|60px|middle|link=版权和许可证]] <span title="署名(BY)">{{{1}}}</span>
| BY-SA = [[file:cc-by-sa.png|60px|middle|link=版权和许可证]] <span title="署名(BY)-相同方式共享(SA)">{{{1}}}</span>
| BY-NC = [[file:cc-by-nc.png|60px|middle|link=版权和许可证]] <span title="署名(BY)-非商业性使用(NC)">{{{1}}}</span>
| BY-NC-SA = [[file:cc-by-nc-sa.png|60px|middle|link=版权和许可证]] <span title="署名(BY)-非商业性使用(NC)-相同方式共享(SA)">{{{1}}}</span>
| BY-ND =[[file:cc-by-nd.png|60px|middle|link=版权和许可证]] <span title="署名(BY)-禁止演绎(ND)">{{{1}}}</span>
| BY-NC-ND =[[file:cc-by-nc-nd.png|60px|middle|link=版权和许可证]] <span title="署名(BY)-非商业性使用(NC)-禁止演绎(ND)">{{{1}}}</span>
| GFDL = [[file:gnu-fdl.png|60px|middle|link=版权和许可证]] <span title="GNU自由文档许可证">{{{1}}}</span>
| PD = [[file:public-domain.png|60px|middle|link=版权和许可证]] <span title="任何人可以不受限制地使用和加工">{{{1}}}</span>
| 未知或未标注
}}
719771c8abaeb9e343d01a3a96e40d4b045caa88
文件:Cc-by-nd.png
6
31
37
2022-10-28T08:12:50Z
Istudylinux
1
基于MsUpload的文件上传
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Cc-by-sa.png
6
32
38
2022-10-28T08:12:51Z
Istudylinux
1
基于MsUpload的文件上传
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Gnu-fdl.png
6
33
39
2022-10-28T08:12:51Z
Istudylinux
1
基于MsUpload的文件上传
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Public-domain.png
6
34
40
2022-10-28T08:12:51Z
Istudylinux
1
基于MsUpload的文件上传
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Cc-by-nc-nd.png
6
36
44
2022-10-28T08:12:51Z
Istudylinux
1
基于MsUpload的文件上传
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:A+医学百科.png
6
37
45
2022-10-28T08:14:02Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:网站/网站性质
10
38
47
2022-10-28T08:16:43Z
Istudylinux
1
创建页面,内容为“{{#switch:{{{1}}} |0= 维基网站 |1= 维基农场 |}}”
wikitext
text/x-wiki
{{#switch:{{{1}}}
|0= 维基网站
|1= 维基农场
|}}
bac04349055a51d5d19fe51d316c62441e3cb27c
51
47
2022-10-28T08:21:19Z
Istudylinux
1
wikitext
text/x-wiki
{{#switch:{{{1}}}
|0= 个人
|1= 公司
|}}
70922f568aabaf07ea5e341b6f88ef449f15ad18
模板:网站
10
27
53
52
2022-10-28T08:24:20Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
'''{{PAGENAME}}'''是一个'''[[分类:{{{网站分类}}}|{{{网站分类}}}]]'''类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人,公司]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
ce75bd5094a9131b046188a3bd74946b670dc0fa
54
53
2022-10-28T08:25:11Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
<b>{{PAGENAME}}</b>是一个<b>{{{网站分类}}}</b>类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人,公司]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
5e95d8a058108fc2017dff0d252e4de184ed8e26
62
54
2022-10-28T08:30:01Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
<b>{{PAGENAME}}</b>是一个<b>{{{网站分类}}}</b>类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{{网站网址|}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|0,个人;1,公司]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
b26e9f27798d07fd44d6987508163a093996941e
74
62
2022-10-28T08:59:27Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
<b>{{PAGENAME}}</b>是一个<b>{{{网站分类}}}</b>类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{#urldecode:{{{网站网址|}}}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|0,个人;1,公司]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
3a5b5b3704ec9e657eb44d2f7498a63772c70f7f
96
74
2022-10-28T13:49:10Z
Istudylinux
1
清空全部内容
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:网站/用户权限
10
39
55
2022-10-28T08:25:34Z
Istudylinux
1
创建页面,内容为“{{#switch:{{{1}}} |0=开放WIKI |1=需要注册账号 |2=仅限授权编者 |3=私人WIKI | }}”
wikitext
text/x-wiki
{{#switch:{{{1}}}
|0=开放WIKI
|1=需要注册账号
|2=仅限授权编者
|3=私人WIKI
|
}}
13925f8febf1812dbce1d785c27bc3f3fb9d5533
模板:网站/软件
10
28
56
34
2022-10-28T08:26:34Z
Istudylinux
1
wikitext
text/x-wiki
{{#switch:{{{1}}}
|
|MediaWiki= [[File:MediaWiki.png|20px|middle|link=https://www.mediawiki.org/|MediaWiki]] {{{1}}}
|DokuWiki= [[File:DokuWiki.png|20px|middle|link=https://www.dokuwiki.org/dokuwiki|DokuWiki]] {{{1}}}
|未知
}}
fdb527e4e0a6daf9db7c0a1bc4ef9bb28c278109
58
56
2022-10-28T08:27:16Z
Istudylinux
1
wikitext
text/x-wiki
{{#switch:{{{1}}}
|
|MediaWiki= [[File:MediaWiki.png|20px|middle|link=https://www.mediawiki.org/|MediaWiki]] MediaWiki
|DokuWiki= [[File:DokuWiki.png|20px|middle|link=https://www.dokuwiki.org/dokuwiki|DokuWiki]] DokuWiki
|未知
}}
7e89bb97758cc1fd12fabc5f7053d02700bef762
59
58
2022-10-28T08:28:32Z
Istudylinux
1
wikitext
text/x-wiki
{{#switch:{{{1}}}
|
|MediaWiki= <!--[[File:MediaWiki.png|20px|middle|link=https://www.mediawiki.org/|MediaWiki]]-->MediaWiki
|DokuWiki= <!--[[File:DokuWiki.png|20px|middle|link=https://www.dokuwiki.org/dokuwiki|DokuWiki]]-->DokuWiki
|未知
}}
0fdd1718d15691e8ebce8ae8404e990e0cbc699a
文件:MediaWiki.png
6
40
57
2022-10-28T08:26:55Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:网站/网站性质
10
38
60
51
2022-10-28T08:29:08Z
Istudylinux
1
wikitext
text/x-wiki
{{#switch:{{{1}}}
|0= 个人
|1= 公司
|未知
|}}
361db9468a4bd6952d440982df02296b312aa85c
61
60
2022-10-28T08:29:32Z
Istudylinux
1
wikitext
text/x-wiki
{{#switch:{{{1}}}
|0= 个人
|1= 公司
|未知}}
d4808bb461c149754262464db42c85e8c2b3024b
模板:网站/doc
10
41
63
2022-10-28T08:33:08Z
Istudylinux
1
创建页面,内容为“== 使用方法 == <pre>{{网站 |网站Logo= |中文名称= |英文名称= |网站网址= |网站分类= |使用软件= |网站性质= |用户权限= |内容许可= }}</pre> {| class="wikitable" |+ 网站信息模板参数说明 |- ! 名称 !! 填写值 !! 备注 |- | 网站Logo || WIKI网站名称.png || 这个为135x135的WIKI网站左上角的图片,填写图片名称,命名通常是网站页面名称,A+医学百科.png。 |- | 中文名称 || WIKI…”
wikitext
text/x-wiki
== 使用方法 ==
<pre>{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}</pre>
{| class="wikitable"
|+ 网站信息模板参数说明
|-
! 名称 !! 填写值 !! 备注
|-
| 网站Logo || WIKI网站名称.png || 这个为135x135的WIKI网站左上角的图片,填写图片名称,命名通常是网站页面名称,A+医学百科.png。
|-
| 中文名称 || WIKI网站名称 || 这个和页面标题不一样,为了防止撞车
|-
| 英文名称 || 有就填,没有就不填 ||
|-
| 网站网址 || www.example.com<br/><nowiki>http://www.example.com</nowiki> || www.example.com(如果没有填写http,默认添加https)
|-
| 网站分类 || 随意,填写大概的分类 || 目前没有对网站进行分类
|-
| 使用软件 || MediaWiki<br>Confluence<br>DokuWiki || 更多其他WIKI软件参考[https://zh.wikipedia.org/wiki/Wiki%E8%BD%AF%E4%BB%B6%E6%AF%94%E8%BE%83 维基百科-WIKI软件比较]
|-
| 网站性质 || 0:个人搭建维护<br>1:企业维护<br>未知:默认值 || 1
|-
| 用户权限 || 0:开放wik<br>1:需要注册账号<br>2:仅限授权编者<br>3:私人wiki || 3
|-
| 内容许可 ||
{| class="wikitable"
! 填写值 !! 说明
|-
| 0 || 数字0,表示该网站未标注或者未知
|-
| CC0 || 不受限制地在全球范围内发布内容
|-
| BY || 署名(BY)
|-
| BY-SA || 署名(BY)-相同方式共享(SA)
|-
| BY-NC || 署名(BY)-非商业性使用(NC)
|-
| BY-NC-SA ||署名(BY)-非商业性使用(NC)-相同方式共享(SA)
|-
| BY-ND ||署名(BY)-禁止演绎(ND)
|-
| BY-NC-ND ||署名(BY)-非商业性使用(NC)-禁止演绎(ND)
|-
| GFDL || GNU自由文档许可证(GNU Free Documentation License)
|-
| PD || Public-Domain(PD)
|}
|| 更多详细的请参考[[版权和许可证]]
|}
01307c7132b5de2e768394112d728326b4378851
网站:A+医学百科
3000
42
64
2022-10-28T08:33:12Z
Istudylinux
1
创建页面,内容为“{{网站 |网站Logo=A+医学百科.png |中文名称=A+医学百科 |英文名称= |网站网址=http://www.a-hospital.com |网站分类=医学 |使用软件= |网站性质= |用户权限=0 |内容许可=BY-SA }}”
wikitext
text/x-wiki
{{网站
|网站Logo=A+医学百科.png
|中文名称=A+医学百科
|英文名称=
|网站网址=http://www.a-hospital.com
|网站分类=医学
|使用软件=
|网站性质=
|用户权限=0
|内容许可=BY-SA
}}
bc0bdfb06d03167a671cf8a295cad62a3266bdbc
77
64
2022-10-28T09:32:02Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=A+医学百科.png
|中文名称=A+医学百科
|英文名称=
|网站网址=http://www.a-hospital.com
|网站分类=医学
|使用软件=
|网站性质=
|用户权限=0
|内容许可=BY-SA
}}
dccbe983b1caacef1384bf8f013bac7de479ecc9
92
77
2022-10-28T13:47:56Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=A+医学百科.png
|名称=A+医学百科
|网站网址=http://www.a-hospital.com
|网站分类=医学
|使用软件=
|网站性质=
|用户权限=0
|内容许可=BY-SA
}}
423a34d79191ee133b948115946c9690633adb4c
93
92
2022-10-28T13:48:07Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=A+医学百科.png
|网站名称=A+医学百科
|网站网址=http://www.a-hospital.com
|网站分类=医学
|使用软件=
|网站性质=
|用户权限=0
|内容许可=BY-SA
}}
56a5e942f7c1631fece51c29c5afaa5aadeba3f9
文件:Public-domain.png
6
34
65
40
2022-10-28T08:38:52Z
Istudylinux
1
Istudylinux移动页面[[文件:Gnu-fdl.png]]至[[文件:Public-domain.png]],不留重定向
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Gnu-fdl.png
6
33
66
39
2022-10-28T08:39:20Z
Istudylinux
1
Istudylinux移动页面[[文件:Cc-by-sa.png]]至[[文件:Gnu-fdl.png]],不留重定向
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Cc-by-sa.png
6
32
67
38
2022-10-28T08:39:41Z
Istudylinux
1
Istudylinux移动页面[[文件:Cc-by-nd.png]]至[[文件:Cc-by-sa.png]],不留重定向
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Cc-by-nd.png
6
31
68
37
2022-10-28T08:42:22Z
Istudylinux
1
Istudylinux移动页面[[文件:Cc-by-nc-sa.png]]至[[文件:Cc-by-nd.png]],不留重定向
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Cc-by-nc-nd.png
6
36
69
44
2022-10-28T08:42:48Z
Istudylinux
1
Istudylinux移动页面[[文件:Cc-by-nc.png]]至[[文件:Cc-by-nc-nd.png]],不留重定向
wikitext
text/x-wiki
基于MsUpload的文件上传
a13cb97e12beb36c5e09351cbbe1d01f12e99668
文件:Cc-by-nc.png
6
3
70
43
2022-10-28T08:43:13Z
Istudylinux
1
Istudylinux移动页面[[文件:Cc-by.png]]至[[文件:Cc-by-nc.png]],不留重定向
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:首页
10
13
71
30
2022-10-28T08:44:16Z
Istudylinux
1
wikitext
text/x-wiki
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
* [[MediaWiki安装|MW安装]]
* [[入门编辑]]
* [[ShortURL配置]]
* [[移动端皮肤]]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>MW官网入门</span></h3>
<div id="mainpage-users" title="MW官网入门" class="items">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings MediaWiki配置设置列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/zh-hans MediaWiki常见问题]
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki发布邮件列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources 本地化MediaWiki到您的语言]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam 了解如何在您的wiki上打击破坏]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>仓库</span></h3>
<div id="mainpage-devs" title="仓库" class="items">
{{#dpl:
|category=前端
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
{{#dpl:
|category=维基农场
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
最近添加:
{{#dpl:
|category=网站
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
<span class="plainlinks">[[网站|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
fcf59fc1bb93273444b0cb06675aaa5cd46bad91
84
71
2022-10-28T13:15:02Z
Istudylinux
1
wikitext
text/x-wiki
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
* [[MediaWiki安装|MW安装]]
* [[入门编辑]]
* [[ShortURL配置]]
* [[移动端皮肤]]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>MW官网入门</span></h3>
<div id="mainpage-users" title="MW官网入门" class="items">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings MediaWiki配置设置列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/zh-hans MediaWiki常见问题]
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki发布邮件列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources 本地化MediaWiki到您的语言]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam 了解如何在您的wiki上打击破坏]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>仓库</span></h3>
<div id="mainpage-devs" title="仓库" class="items">
{{#dpl:
|category=仓库
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
{{#dpl:
|category=维基农场
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
最近添加:
{{#dpl:
|category=网站
|ordermethod=lastedit
|order=descending
|count=5
}}
</div>
<span class="plainlinks">[[网站|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
7e05103e17b2ae142c561b544dac6022e55f0145
文件:灰机wiki.png
6
43
72
2022-10-28T08:56:27Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:灰机wiki
3000
44
73
2022-10-28T08:56:39Z
Istudylinux
1
创建页面,内容为“{{网站 |网站Logo=灰机wiki.png |中文名称=灰机wiki |英文名称=huijiwiki |网站网址=https://www.huijiwiki.com/ |网站分类=维基农场 |使用软件=MediaWiki |网站性质=1 |用户权限=0 |内容许可= }}”
wikitext
text/x-wiki
{{网站
|网站Logo=灰机wiki.png
|中文名称=灰机wiki
|英文名称=huijiwiki
|网站网址=https://www.huijiwiki.com/
|网站分类=维基农场
|使用软件=MediaWiki
|网站性质=1
|用户权限=0
|内容许可=
}}
98cd05a58c6fd74df61e318791ac9ad510026faf
75
73
2022-10-28T09:31:22Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=灰机wiki.png
|中文名称=灰机wiki
|英文名称=huijiwiki
|网站网址=https://www.huijiwiki.com/
|网站分类=维基农场
|使用软件=MediaWiki
|网站性质=1
|用户权限=0
|内容许可=
}}
e76df04dd48bb710979c56c8da677d726f4ca315
88
75
2022-10-28T13:44:27Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=灰机wiki.png
|中文名称=灰机wiki
|英文名称=huijiwiki
|网站网址=https://www.huijiwiki.com/
|网站分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=0
|内容许可=
}}
ecd7848707859c23d2b13746df8cfa74ffbd472d
95
88
2022-10-28T13:48:44Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=灰机wiki.png
|网站名称=灰机wiki
|网站网址=https://www.huijiwiki.com/
|网站分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=0
|内容许可=
}}
cf4f4fab1a8665ca45ddfbb05b2f02226adf507b
模板:Infobox site
10
45
76
2022-10-28T09:31:46Z
Istudylinux
1
创建页面,内容为“<noinclude> 这是“网站”模板。调用它时应该采用如下格式: <pre> {{网站 |网站Logo= |中文名称= |英文名称= |网站网址= |网站分类= |使用软件= |网站性质= |用户权限= |内容许可= }} </pre> 编辑页面以阅读模板文本。 {{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,…”
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
<b>{{PAGENAME}}</b>是一个<b>{{{网站分类}}}</b>类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{#urldecode:{{{网站网址|}}}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|0,个人;1,公司]]
| {{网站/网站性质|{{{网站性质|}}}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
3a5b5b3704ec9e657eb44d2f7498a63772c70f7f
89
76
2022-10-28T13:45:16Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
<b>{{PAGENAME}}</b>是一个<b>{{{网站分类}}}</b>类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{#urldecode:{{{网站网址|}}}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;其他]]
| {{{网站性质|}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
b6948f4b51261c7b07403c356cda6d2fa05cda3b
90
89
2022-10-28T13:45:44Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
<b>{{PAGENAME}}</b>是一个<b>{{{网站分类}}}</b>类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 中文名称
| {{{中文名称|}}}
|-
! 英文名称
| {{{英文名称|}}}
|-
! 网站网址
| {{#urldecode:{{{网站网址|}}}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;其他]]
| {{{网站性质|未知}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
f8d70a8123b4ed5bc5a80edf5c5ca83c4eafc361
91
90
2022-10-28T13:47:00Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|名称={{{中文名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
<b>{{PAGENAME}}</b>是一个<b>{{{网站分类}}}</b>类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 名称
| {{{名称|}}}
|-
! 网站网址
| {{#urldecode:{{{网站网址|}}}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;其他]]
| {{{网站性质|未知}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
ca8a3d3cef069f4880db2821bd414c339ff6ab07
94
91
2022-10-28T13:48:33Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
这是“网站”模板。调用它时应该采用如下格式:
<pre>
{{网站
|网站Logo=
|网站名称=
|网站网址=
|网站分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
</pre>
编辑页面以阅读模板文本。
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|网站网址=String|网站分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|网站网址={{{网站网址|}}}|网站分类={{{网站分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}<noinclude>{{模板:Box/doc}}</noinclude>
<includeonly>
<b>{{PAGENAME}}</b>是一个<b>{{{网站分类}}}</b>类的网站。
{| style="float:right; width: 100%;max-width:350px;min-width:135px; font-size: 96%; border: 1px solid #aaaaaa; background-color: #f5faff; color: black; margin-bottom: 0.5em; padding: 0.2em; text-align:left;"
! style="text-align: center; background-color:#bad2ed; height: 2.5em;" colspan="2" |<span style="font-size: 135%;">{{PAGENAME}}</span>
|-
! style="text-align: center;" colspan="2" |[[File:{{{网站Logo|}}}|135px|link=]]
|-
! style="text-align: center;font-weight:normal;" colspan="2" | 网站Logo
|-
! 网站名称
| {{{网站名称|}}}
|-
! 网站网址
| {{#urldecode:{{{网站网址|}}}}}
|-
! 网站分类
| {{{网站分类|}}}
|-
! 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;其他]]
| {{{网站性质|未知}}}
|-
! 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| {{网站/软件|{{{使用软件|}}}}}
|-
! 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| {{网站/用户权限|{{{用户权限}}}}}
|-
! 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| {{网站/内容许可|{{{内容许可}}}}}
|}[[分类:{{{网站分类}}}]][[分类:网站]]
</includeonly>
21fdf790f79d3113d98cec00933a15d922badd30
模块:Infobox
828
46
78
2022-10-28T09:41:51Z
Istudylinux
1
创建页面,内容为“-- -- This module implements {{Infobox}} -- 中文的此模块对比英文维基多解析了overimage, overcaption, -- overimagerowclass以及header/labal/data*style参数。 -- local p = {} local navbar = require('Module:Navbar')._navbar local args = {} local origArgs = {} local root local function notempty( s ) return s and s:match( '%S' ) end local function fixChildBoxes(sval, tt) if notempty(sval) then local marker = '<span class=special_infobox_mar…”
Scribunto
text/plain
--
-- This module implements {{Infobox}}
-- 中文的此模块对比英文维基多解析了overimage, overcaption,
-- overimagerowclass以及header/labal/data*style参数。
--
local p = {}
local navbar = require('Module:Navbar')._navbar
local args = {}
local origArgs = {}
local root
local function notempty( s ) return s and s:match( '%S' ) end
local function fixChildBoxes(sval, tt)
if notempty(sval) then
local marker = '<span class=special_infobox_marker>'
local s = sval
s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1')
s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker)
if s:match(marker) then
s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '')
s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1')
s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1')
s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1')
s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1')
s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1')
end
if s:match(marker) then
local subcells = mw.text.split(s, marker)
s = ''
for k = 1, #subcells do
if k == 1 then
s = s .. subcells[k] .. '</' .. tt .. '></tr>'
elseif k == #subcells then
local rowstyle = ' style="display:none"'
if notempty(subcells[k]) then rowstyle = '' end
s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k]
elseif notempty(subcells[k]) then
if (k % 2) == 0 then
s = s .. subcells[k]
else
s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>'
end
end
end
end
-- the next two lines add a newline at the end of lists for the PHP parser
-- https://en.wikipedia.org/w/index.php?title=Template_talk:Infobox_musical_artist&oldid=849054481
-- remove when [[:phab:T191516]] is fixed or OBE
s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n')
s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1')
s = mw.ustring.gsub(s, '^(%{%|)', '\n%1')
return s
else
return sval
end
end
local function union(t1, t2)
-- Returns the union of the values of two tables, as a sequence.
local vals = {}
for k, v in pairs(t1) do
vals[v] = true
end
for k, v in pairs(t2) do
vals[v] = true
end
local ret = {}
for k, v in pairs(vals) do
table.insert(ret, k)
end
return ret
end
local function getArgNums(prefix)
-- Returns a table containing the numbers of the arguments that exist
-- for the specified prefix. For example, if the prefix was 'data', and
-- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}.
local nums = {}
for k, v in pairs(args) do
local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$')
if num then table.insert(nums, tonumber(num)) end
end
table.sort(nums)
return nums
end
local function addRow(rowArgs)
-- Adds a row to the infobox, with either a header cell
-- or a label/data cell combination.
if rowArgs.header and rowArgs.header ~= '_BLANK_' then
root
:tag('tr')
:addClass(rowArgs.rowclass)
:cssText(rowArgs.rowstyle)
:attr('id', rowArgs.rowid)
:tag('th')
:attr('colspan', 2)
:attr('id', rowArgs.headerid)
:addClass(rowArgs.class)
:addClass(args.headerclass)
:css('text-align', 'center')
:cssText(rowArgs.headerstyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(fixChildBoxes(rowArgs.header, 'th'))
if rowArgs.data then
root:wikitext('[[Category:使用已忽略数据行信息框模板的条目]]')
end
elseif rowArgs.data then
if not rowArgs.data:gsub('%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]', ''):match('^%S') then
rowArgs.rowstyle = 'display:none'
end
local row = root:tag('tr')
row:addClass(rowArgs.rowclass)
row:cssText(rowArgs.rowstyle)
row:attr('id', rowArgs.rowid)
if rowArgs.label then
row
:tag('th')
:attr('scope', 'row')
:css('text-align', 'left')
:attr('id', rowArgs.labelid)
:cssText(rowArgs.labelstyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(rowArgs.label)
:done()
end
local dataCell = row:tag('td')
if not rowArgs.label then
dataCell
:attr('colspan', 2)
:css('text-align', 'center')
end
dataCell
:attr('id', rowArgs.dataid)
:addClass(rowArgs.class)
:cssText(rowArgs.datastyle)
:cssText(rowArgs.rowcellstyle)
:wikitext(fixChildBoxes(rowArgs.data, 'td'))
end
end
local function renderOverImage()
if not args.overimage then return end
local row = root:tag('tr')
row:addClass(args.overimagerowclass)
local topImage = row:tag('td')
topImage:attr('colspan', 2)
topImage:addClass(args.imageclass)
topImage:cssText(args.imagestyle)
topImage:css('text-align', 'center')
if args.overcaption and args.captionstyle then
topImage:wikitext(fixChildBoxes(args.overimage .. '<div style=\"' .. args.captionstyle .. '\">' .. args.overcaption .. '</div>', 'td'))
else
if args.overcaption then
topImage:wikitext(fixChildBoxes(args.overimage .. '<div>' .. args.overcaption .. '</div>', 'td'))
else
topImage:wikitext(fixChildBoxes(args.overimage, 'td'))
end
end
end
local function renderTitle()
if not args.title then return end
root
:tag('caption')
:addClass(args.titleclass)
:cssText(args.titlestyle)
:wikitext('\'\'\'' .. args.title .. '\'\'\'')
end
local function renderAboveRow()
if not args.above then return end
root
:tag('tr')
:tag('th')
:attr('colspan', 2)
:addClass(args.aboveclass)
:css('text-align', 'center')
:css('font-size', '125%')
:css('font-weight', 'bold')
:cssText(args.abovestyle)
:wikitext(fixChildBoxes(args.above,'th'))
end
local function renderBelowRow()
if not args.below then return end
root
:tag('tr')
:tag('td')
:attr('colspan', '2')
:addClass(args.belowclass)
:css('text-align', 'center')
:cssText(args.belowstyle)
:wikitext(fixChildBoxes(args.below,'td'))
end
local function renderSubheaders()
if args.subheader then
args.subheader1 = args.subheader
end
if args.subheaderrowclass then
args.subheaderrowclass1 = args.subheaderrowclass
end
local subheadernums = getArgNums('subheader')
for k, num in ipairs(subheadernums) do
addRow({
data = args['subheader' .. tostring(num)],
datastyle = args.subheaderstyle,
rowcellstyle = args['subheaderstyle' .. tostring(num)],
class = args.subheaderclass,
rowclass = args['subheaderrowclass' .. tostring(num)]
})
end
end
local function renderImages()
if args.image then
args.image1 = args.image
end
if args.caption then
args.caption1 = args.caption
end
local imagenums = getArgNums('image')
for k, num in ipairs(imagenums) do
local caption = args['caption' .. tostring(num)]
local data = mw.html.create():wikitext(args['image' .. tostring(num)])
if caption then
data
:tag('div')
:cssText(args.captionstyle)
:wikitext(caption)
end
addRow({
data = tostring(data),
datastyle = args.imagestyle,
class = args.imageclass,
rowclass = args['imagerowclass' .. tostring(num)]
})
end
end
local function preprocessRows()
-- Gets the union of the header and data argument numbers,
-- and renders them all in order using addRow.
local rownums = union(getArgNums('header'), getArgNums('data'))
table.sort(rownums)
local lastheader
for k, num in ipairs(rownums) do
if args['header' .. tostring(num)] then
if lastheader then
args['header' .. tostring(lastheader)] = nil
end
lastheader = num
elseif args['data' .. tostring(num)] and args['data' .. tostring(num)]:gsub('%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]', ''):match('^%S') then
local data = args['data' .. tostring(num)]
if data:gsub('%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]', ''):match('%S') then
lastheader = nil
end
end
end
if lastheader then
args['header' .. tostring(lastheader)] = nil
end
end
local function renderRows()
-- Gets the union of the header and data argument numbers,
-- and renders them all in order using addRow.
local rownums = union(getArgNums('header'), getArgNums('data'))
table.sort(rownums)
for k, num in ipairs(rownums) do
addRow({
header = args['header' .. tostring(num)],
headerstyle = (args.headerstyle or '') .. (args.headerstyle and ';' or '') .. (args['header' .. tostring(num) .. 'style'] or ''),
label = args['label' .. tostring(num)],
labelstyle = (args.labelstyle or '') .. (args.labelstyle and ';' or '') .. (args['label' .. tostring(num) .. 'style'] or ''),
data = args['data' .. tostring(num)],
datastyle = (args.datastyle or '') .. (args.datastyle and ';' or '') .. (args['data' .. tostring(num) .. 'style'] or ''),
class = args['class' .. tostring(num)],
rowclass = args['rowclass' .. tostring(num)],
rowstyle = args['rowstyle' .. tostring(num)],
rowcellstyle = args['rowcellstyle' .. tostring(num)],
dataid = args['dataid' .. tostring(num)],
labelid = args['labelid' .. tostring(num)],
headerid = args['headerid' .. tostring(num)],
rowid = args['rowid' .. tostring(num)]
})
end
end
local function renderNavBar()
if not args.name then return end
root
:tag('tr')
:tag('td')
:attr('colspan', '2')
:css('text-align', 'right')
:wikitext(navbar{
args.name,
mini = 1,
})
end
local function renderItalicTitle()
local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title'])
if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then
root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'}))
end
end
local function renderTrackingCategories()
if args.decat ~= 'yes' then
if args.child == 'yes' then
if args.title then
root:wikitext('[[Category:使用带有标题参数的嵌入式信息框模板的条目]]')
end
elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
root:wikitext('[[Category:使用无数据行信息框模板的条目]]')
end
end
end
local function _infobox()
-- Specify the overall layout of the infobox, with special settings
-- if the infobox is used as a 'child' inside another infobox.
if args.child ~= 'yes' then
root = mw.html.create('table')
root
:addClass((args.subbox ~= 'yes') and 'infobox' or nil)
:addClass(args.bodyclass)
:attr('cellspacing', 3)
:css('border-spacing', '3px')
if args.subbox == 'yes' then
root
:css('padding', '0')
:css('border', 'none')
:css('margin', '-3px')
:css('width', 'auto')
:css('min-width', '100%')
:css('font-size', 'small')
:css('clear', 'none')
:css('float', 'none')
:css('background-color', 'transparent')
else
root
:css('width', '22em')
:css('text-align', 'left')
:css('font-size', 'small')
:css('line-height', '1.5em')
end
root
:cssText(args.bodystyle)
renderTitle()
renderAboveRow()
else
root = mw.html.create()
root
:wikitext(args.title)
end
renderOverImage()
renderSubheaders()
renderImages()
if args.autoheaders then
preprocessRows()
end
renderRows()
renderBelowRow()
renderNavBar()
renderItalicTitle()
renderTrackingCategories()
return tostring(root)
end
local function preprocessSingleArg(argName)
-- If the argument exists and isn't blank, add it to the argument table.
-- Blank arguments are treated as nil to match the behaviour of ParserFunctions.
if origArgs[argName] and origArgs[argName] ~= '' then
args[argName] = origArgs[argName]
end
end
local function preprocessArgs(prefixTable, step)
-- Assign the parameters with the given prefixes to the args table, in order, in batches
-- of the step size specified. This is to prevent references etc. from appearing in the
-- wrong order. The prefixTable should be an array containing tables, each of which has
-- two possible fields, a "prefix" string and a "depend" table. The function always parses
-- parameters containing the "prefix" string, but only parses parameters in the "depend"
-- table if the prefix parameter is present and non-blank.
if type(prefixTable) ~= 'table' then
error("Non-table value detected for the prefix table", 2)
end
if type(step) ~= 'number' then
error("Invalid step value detected", 2)
end
-- Get arguments without a number suffix, and check for bad input.
for i,v in ipairs(prefixTable) do
if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then
error('Invalid input detected to preprocessArgs prefix table', 2)
end
preprocessSingleArg(v.prefix)
-- Only parse the depend parameter if the prefix parameter is present and not blank.
if args[v.prefix] and v.depend then
for j, dependValue in ipairs(v.depend) do
if type(dependValue) ~= 'string' then
error('Invalid "depend" parameter value detected in preprocessArgs')
end
preprocessSingleArg(dependValue)
end
end
end
-- Get arguments with number suffixes.
local a = 1 -- Counter variable.
local moreArgumentsExist = true
while moreArgumentsExist == true do
moreArgumentsExist = false
for i = a, a + step - 1 do
for j,v in ipairs(prefixTable) do
local prefixArgName = v.prefix .. tostring(i)
if origArgs[prefixArgName] then
moreArgumentsExist = true -- Do another loop if any arguments are found, even blank ones.
preprocessSingleArg(prefixArgName)
end
-- Process the depend table if the prefix argument is present and not blank, or
-- we are processing "prefix1" and "prefix" is present and not blank, and
-- if the depend table is present.
if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then
for j,dependValue in ipairs(v.depend) do
local dependArgName = dependValue .. tostring(i)
preprocessSingleArg(dependArgName)
end
end
end
end
a = a + step
end
end
function preprocessSpecificStyle(styleTable, step)
-- Assign the parameters *style to the args table
local a = 1 -- Counter variable.
local moreArgumentsExist = true
while moreArgumentsExist == true do
moreArgumentsExist = false
for i = a,a + step - 1 do
for j,v in ipairs(styleTable) do
local styleArgName = v.arg .. tostring(i) .. 'style'
if origArgs[styleArgName] then
moreArgumentsExist = true -- Do another loop if any arguments are found, even blank ones.
preprocessSingleArg(styleArgName)
end
end
end
a = a + step
end
end
local function parseDataParameters()
-- Parse the data parameters in the same order that the old {{infobox}} did, so that
-- references etc. will display in the expected places. Parameters that depend on
-- another parameter are only processed if that parameter is present, to avoid
-- phantom references appearing in article reference lists.
preprocessSingleArg('autoheaders')
preprocessSingleArg('child')
preprocessSingleArg('bodyclass')
preprocessSingleArg('subbox')
preprocessSingleArg('bodystyle')
preprocessSingleArg('overimage')
preprocessSingleArg('overcaption')
preprocessSingleArg('overimagerowclass')
preprocessSingleArg('title')
preprocessSingleArg('titleclass')
preprocessSingleArg('titlestyle')
preprocessSingleArg('above')
preprocessSingleArg('aboveclass')
preprocessSingleArg('abovestyle')
preprocessArgs({
{prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}}
}, 10)
preprocessSingleArg('subheaderstyle')
preprocessSingleArg('subheaderclass')
preprocessArgs({
{prefix = 'image', depend = {'caption', 'imagerowclass'}}
}, 10)
preprocessSingleArg('captionstyle')
preprocessSingleArg('imagestyle')
preprocessSingleArg('imageclass')
preprocessArgs({
{prefix = 'header'},
{prefix = 'data', depend = {'label'}},
{prefix = 'rowclass'},
{prefix = 'rowstyle'},
{prefix = 'rowcellstyle'},
{prefix = 'class'},
{prefix = 'dataid'},
{prefix = 'labelid'},
{prefix = 'headerid'},
{prefix = 'rowid'}
}, 80)
preprocessSpecificStyle({
{arg = 'header'},
{arg = 'label'},
{arg = 'data'}
}, 80)
preprocessSingleArg('headerclass')
preprocessSingleArg('headerstyle')
preprocessSingleArg('labelstyle')
preprocessSingleArg('datastyle')
preprocessSingleArg('below')
preprocessSingleArg('belowclass')
preprocessSingleArg('belowstyle')
preprocessSingleArg('name')
args['italic title'] = origArgs['italic title'] -- different behaviour if blank or absent
preprocessSingleArg('decat')
end
function p.infobox(frame)
-- If called via #invoke, use the args passed into the invoking template.
-- Otherwise, for testing purposes, assume args are being passed directly in.
if frame == mw.getCurrentFrame() then
origArgs = frame:getParent().args
else
origArgs = frame
end
parseDataParameters()
return _infobox()
end
function p.infoboxTemplate(frame)
-- For calling via #invoke within a template
origArgs = {}
for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end
parseDataParameters()
return _infobox()
end
return p
61a9bcbcd378902ef8e4484168565abd9fe0f403
模板:Infobox
10
47
79
2022-10-28T09:43:56Z
Istudylinux
1
创建页面,内容为“{{#invoke:Infobox|infobox}}”
wikitext
text/x-wiki
{{#invoke:Infobox|infobox}}
f1bcd2f580de5c4eadfe1824686228f685062363
模块:Navbar
828
48
80
2022-10-28T09:44:50Z
Istudylinux
1
创建页面,内容为“local p = {} local getArgs function p._navbar(args) local titleArg = 1 if args.collapsible then titleArg = 2 if not args.plain then args.mini = 1 end if args.fontcolor then args.fontstyle = 'color:' .. args.fontcolor .. ';' end args.style = 'float:left; text-align:left' end local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle()) local title = mw.title.new(mw.text.trim(titleText), 'Template'); if not…”
Scribunto
text/plain
local p = {}
local getArgs
function p._navbar(args)
local titleArg = 1
if args.collapsible then
titleArg = 2
if not args.plain then
args.mini = 1
end
if args.fontcolor then
args.fontstyle = 'color:' .. args.fontcolor .. ';'
end
args.style = 'float:left; text-align:left'
end
local titleText = args[titleArg] or (':' .. mw.getCurrentFrame():getParent():getTitle())
local title = mw.title.new(mw.text.trim(titleText), 'Template');
if not title then
error('页面不存在 ' .. titleText)
end
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or '';
local div = mw.html.create():tag('div')
div
:addClass('plainlinks')
:addClass('hlist')
:addClass('navbar')
:cssText(args.style)
if args.mini then div:addClass('mini') end
if not (args.mini or args.plain) then
div
:tag('span')
:css('word-spacing', 0)
:cssText(args.fontstyle)
:wikitext(args.text or '本模板:')
:wikitext(' ')
end
if args.brackets then
div
:tag('span')
:css('margin-right', '-0.125em')
:cssText(args.fontstyle)
:wikitext('[ ')
end
local ul = div:tag('ul');
ul
:tag('li')
:addClass('nv-view')
:wikitext('[[' .. title.fullText .. '|')
:tag(args.mini and 'abbr' or 'span')
:attr('title', '-{zh-hans:查看;zh-hant:檢視;}-该模板')
:cssText(args.fontstyle)
:wikitext(args.mini and '-{zh-hans:查;zh-hant:閱;}-' or '-{zh-hans:查看;zh-hant:檢視;}-')
:done()
:wikitext(']]')
:done()
:tag('li')
:addClass('nv-talk')
:wikitext('[[' .. talkpage .. '|')
:tag(args.mini and 'abbr' or 'span')
:attr('title', '讨论该模板')
:cssText(args.fontstyle)
:wikitext(args.mini and '论' or '讨论')
:done()
:wikitext(']]');
if not args.noedit then
ul
:tag('li')
:addClass('nv-edit')
:wikitext('[' .. title:fullUrl('action=edit') .. ' ')
:tag(args.mini and 'abbr' or 'span')
:attr('title', '编辑该模板')
:cssText(args.fontstyle)
:wikitext(args.mini and '编' or '编辑')
:done()
:wikitext(']');
end
if args.brackets then
div
:tag('span')
:css('margin-left', '-0.125em')
:cssText(args.fontstyle)
:wikitext(' ]')
end
if args.collapsible then
div
:done()
:tag('div')
:css('font-size', '114%')
:css('margin', args.mini and '0 4em' or '0 7em')
:cssText(args.fontstyle)
:wikitext(args[1])
end
return tostring(div:done())
end
function p.navbar(frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
return p._navbar(getArgs(frame))
end
return p
4406cbe64f7358fa4324f7f90832afb8575b04be
前端:页面快速置顶置底
3002
49
81
2022-10-28T13:10:55Z
Istudylinux
1
创建页面,内容为“== 源码来源 == [https://zh.wikipedia.org/wiki/MediaWiki:Gadget-scrollUpButton.js MediaWiki:Gadget-scrollUpButton.js] == 功能 == 该源码实现的功能为在当前页面右下角添加'''置顶'''按钮和'''置底'''按钮。 == 可修改内容 == * 可以更改源码高亮的图片链接地址,默认使用中文维基百科的箭头图片。 * 仅需要'''上箭头'''的图片 == 源码 == === MediaWiki:Gadget-scrollUpButton.js === <syntaxhighligh…”
wikitext
text/x-wiki
== 源码来源 ==
[https://zh.wikipedia.org/wiki/MediaWiki:Gadget-scrollUpButton.js MediaWiki:Gadget-scrollUpButton.js]
== 功能 ==
该源码实现的功能为在当前页面右下角添加'''置顶'''按钮和'''置底'''按钮。
== 可修改内容 ==
* 可以更改源码高亮的图片链接地址,默认使用中文维基百科的箭头图片。
* 仅需要'''上箭头'''的图片
== 源码 ==
=== MediaWiki:Gadget-scrollUpButton.js ===
<syntaxhighlight lang="js" line="true" highlight="16,18">
/* scrollUpButton
* Add a button to scroll up to the top of the current page.
* @rev 3 (2019-28-07)
* @author Kwj2772
* @contributor Perhelion
* No internationalisation required
* [kowiki] Fixed an issue with help-panel-button ([[ko:User:ykhwong]])
* [zhwiki] Add a timer to autohide button, check more gadgets. Add scrollDownButton
* @from https://ko.wikipedia.org/?oldid=25440719
* @maintainer 安忆 ([[zh:User:AnYiLin]])
*/
(function($, mw) {
var scrollDownButtonId = 'scrollDownButton-zhwiki',
scrollUpButtonId = 'scrollUpButton-zhwiki';
var scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg';
if (!document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'))
scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg/32px-Font_Awesome_5_regular_arrow-circle-up_blue.svg.png';
$scrollDownButton = $('<img>', {
src: scrollButtonIcon,
id: scrollDownButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
transform: 'rotate(180deg)',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: $(document).height() - $(window).height()
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
$scrollUpButton = $('<img>', {
src: scrollButtonIcon,
id: scrollUpButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: 0
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
var scrollButtonTimer;
$(window).on('scroll', function() {
var dingHeight = $('#bluedeck_ding>div').height() ? $('#bluedeck_ding>div').height() : 0;
$scrollDownButton.css('bottom', dingHeight + 24 + 'px');
$scrollUpButton.css('bottom', dingHeight + 65 + 'px');
(mw.config.get('wgGEHelpPanelEnabled') && $('#mw-ge-help-panel-cta-button').length > 0) || $('#cat_a_lot').length > 0 || $('#proveit').length > 0 || $('.wordcount').length > 0 ? $scrollDownButton.css('left', '10px') && $scrollUpButton.css('left', '10px') : $scrollDownButton.css('left', 'unset') && $scrollUpButton.css('left', 'unset');
$(this).scrollTop() > 60 ? $scrollDownButton.fadeIn('slow') && $scrollUpButton.fadeIn('slow') : $scrollDownButton.fadeOut('slow') && $scrollUpButton.fadeOut('slow');
this.clearTimeout(scrollButtonTimer);
scrollButtonTimer = this.setTimeout(function() {
$scrollDownButton.fadeOut('slow');
$scrollUpButton.fadeOut('slow')
}, 2000)
});
$scrollDownButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
});
$scrollUpButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
})
})(jQuery, mw);
</syntaxhighlight>
[[分类:前端]]
fef9accca524c2cea1630a0d7c80edef65c805c0
82
81
2022-10-28T13:14:26Z
Istudylinux
1
wikitext
text/x-wiki
== 源码来源 ==
[https://zh.wikipedia.org/wiki/MediaWiki:Gadget-scrollUpButton.js MediaWiki:Gadget-scrollUpButton.js]
== 功能 ==
该源码实现的功能为在当前页面右下角添加'''置顶'''按钮和'''置底'''按钮。
== 可修改内容 ==
* 可以更改源码高亮的图片链接地址,默认使用中文维基百科的箭头图片。
* 仅需要'''上箭头'''的图片
== 源码 ==
=== MediaWiki:Gadget-scrollUpButton.js ===
<syntaxhighlight lang="js" line="true" highlight="16,18">
/* scrollUpButton
* Add a button to scroll up to the top of the current page.
* @rev 3 (2019-28-07)
* @author Kwj2772
* @contributor Perhelion
* No internationalisation required
* [kowiki] Fixed an issue with help-panel-button ([[ko:User:ykhwong]])
* [zhwiki] Add a timer to autohide button, check more gadgets. Add scrollDownButton
* @from https://ko.wikipedia.org/?oldid=25440719
* @maintainer 安忆 ([[zh:User:AnYiLin]])
*/
(function($, mw) {
var scrollDownButtonId = 'scrollDownButton-zhwiki',
scrollUpButtonId = 'scrollUpButton-zhwiki';
var scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg';
if (!document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'))
scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg/32px-Font_Awesome_5_regular_arrow-circle-up_blue.svg.png';
$scrollDownButton = $('<img>', {
src: scrollButtonIcon,
id: scrollDownButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
transform: 'rotate(180deg)',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: $(document).height() - $(window).height()
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
$scrollUpButton = $('<img>', {
src: scrollButtonIcon,
id: scrollUpButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: 0
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
var scrollButtonTimer;
$(window).on('scroll', function() {
var dingHeight = $('#bluedeck_ding>div').height() ? $('#bluedeck_ding>div').height() : 0;
$scrollDownButton.css('bottom', dingHeight + 24 + 'px');
$scrollUpButton.css('bottom', dingHeight + 65 + 'px');
(mw.config.get('wgGEHelpPanelEnabled') && $('#mw-ge-help-panel-cta-button').length > 0) || $('#cat_a_lot').length > 0 || $('#proveit').length > 0 || $('.wordcount').length > 0 ? $scrollDownButton.css('left', '10px') && $scrollUpButton.css('left', '10px') : $scrollDownButton.css('left', 'unset') && $scrollUpButton.css('left', 'unset');
$(this).scrollTop() > 60 ? $scrollDownButton.fadeIn('slow') && $scrollUpButton.fadeIn('slow') : $scrollDownButton.fadeOut('slow') && $scrollUpButton.fadeOut('slow');
this.clearTimeout(scrollButtonTimer);
scrollButtonTimer = this.setTimeout(function() {
$scrollDownButton.fadeOut('slow');
$scrollUpButton.fadeOut('slow')
}, 2000)
});
$scrollDownButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
});
$scrollUpButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
})
})(jQuery, mw);
</syntaxhighlight>
[[分类:前端]]
[[分类:仓库]]
ba90a5cc42dc53d579cb1b8f6c32d9b78ec2c0b4
85
82
2022-10-28T13:24:51Z
Istudylinux
1
wikitext
text/x-wiki
== 源码来源 ==
[https://zh.wikipedia.org/wiki/MediaWiki:Gadget-scrollUpButton.js MediaWiki:Gadget-scrollUpButton.js]
== 功能 ==
该源码实现的功能为在当前页面右下角添加'''置顶'''按钮和'''置底'''按钮。
== 可修改内容 ==
* 可以更改源码高亮的图片链接地址,默认使用中文维基百科的箭头图片。
* 仅需要'''上箭头'''的图片
== 源码 ==
=== 注意 ===
# 如果你安装了Extension:Gadget,你可以直接使用<code>MediaWiki:Gadget-scrollUpButton.js</code>作为脚本名称
# 如果你没有安装Gadget扩展,则将下面的代码复制到<code>MediaWiki:Common.css</code>
=== MediaWiki:Gadget-scrollUpButton.js ===
<syntaxhighlight lang="js" line="true" highlight="16,18">
/* scrollUpButton
* Add a button to scroll up to the top of the current page.
* @rev 3 (2019-28-07)
* @author Kwj2772
* @contributor Perhelion
* No internationalisation required
* [kowiki] Fixed an issue with help-panel-button ([[ko:User:ykhwong]])
* [zhwiki] Add a timer to autohide button, check more gadgets. Add scrollDownButton
* @from https://ko.wikipedia.org/?oldid=25440719
* @maintainer 安忆 ([[zh:User:AnYiLin]])
*/
(function($, mw) {
var scrollDownButtonId = 'scrollDownButton-zhwiki',
scrollUpButtonId = 'scrollUpButton-zhwiki';
var scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg';
if (!document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'))
scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg/32px-Font_Awesome_5_regular_arrow-circle-up_blue.svg.png';
$scrollDownButton = $('<img>', {
src: scrollButtonIcon,
id: scrollDownButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
transform: 'rotate(180deg)',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: $(document).height() - $(window).height()
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
$scrollUpButton = $('<img>', {
src: scrollButtonIcon,
id: scrollUpButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: 0
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
var scrollButtonTimer;
$(window).on('scroll', function() {
var dingHeight = $('#bluedeck_ding>div').height() ? $('#bluedeck_ding>div').height() : 0;
$scrollDownButton.css('bottom', dingHeight + 24 + 'px');
$scrollUpButton.css('bottom', dingHeight + 65 + 'px');
(mw.config.get('wgGEHelpPanelEnabled') && $('#mw-ge-help-panel-cta-button').length > 0) || $('#cat_a_lot').length > 0 || $('#proveit').length > 0 || $('.wordcount').length > 0 ? $scrollDownButton.css('left', '10px') && $scrollUpButton.css('left', '10px') : $scrollDownButton.css('left', 'unset') && $scrollUpButton.css('left', 'unset');
$(this).scrollTop() > 60 ? $scrollDownButton.fadeIn('slow') && $scrollUpButton.fadeIn('slow') : $scrollDownButton.fadeOut('slow') && $scrollUpButton.fadeOut('slow');
this.clearTimeout(scrollButtonTimer);
scrollButtonTimer = this.setTimeout(function() {
$scrollDownButton.fadeOut('slow');
$scrollUpButton.fadeOut('slow')
}, 2000)
});
$scrollDownButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
});
$scrollUpButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
})
})(jQuery, mw);
</syntaxhighlight>
[[分类:前端]]
[[分类:仓库]]
e6d51121f141ec3f08f4faf19005be057fcbcc3b
86
85
2022-10-28T13:37:07Z
Istudylinux
1
wikitext
text/x-wiki
== 源码来源 ==
[https://zh.wikipedia.org/wiki/MediaWiki:Gadget-scrollUpButton.js MediaWiki:Gadget-scrollUpButton.js]
== 功能 ==
该源码实现的功能为在当前页面右下角添加'''置顶'''按钮和'''置底'''按钮。
== 可修改内容 ==
* 可以更改源码高亮的图片链接地址,默认使用中文维基百科的箭头图片。
* 仅需要'''上箭头'''的图片
== 源码 ==
=== 注意 ===
# 如果你安装了Extension:Gadget,你可以直接使用<code>MediaWiki:Gadget-scrollUpButton.js</code>作为脚本名称
# 如果你没有安装Gadget扩展,则将下面的代码复制到<code>MediaWiki:Common.js</code>
=== MediaWiki:Gadget-scrollUpButton.js ===
<syntaxhighlight lang="js" line="true" highlight="16,18">
/* scrollUpButton
* Add a button to scroll up to the top of the current page.
* @rev 3 (2019-28-07)
* @author Kwj2772
* @contributor Perhelion
* No internationalisation required
* [kowiki] Fixed an issue with help-panel-button ([[ko:User:ykhwong]])
* [zhwiki] Add a timer to autohide button, check more gadgets. Add scrollDownButton
* @from https://ko.wikipedia.org/?oldid=25440719
* @maintainer 安忆 ([[zh:User:AnYiLin]])
*/
(function($, mw) {
var scrollDownButtonId = 'scrollDownButton-zhwiki',
scrollUpButtonId = 'scrollUpButton-zhwiki';
var scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg';
if (!document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'))
scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg/32px-Font_Awesome_5_regular_arrow-circle-up_blue.svg.png';
$scrollDownButton = $('<img>', {
src: scrollButtonIcon,
id: scrollDownButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
transform: 'rotate(180deg)',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: $(document).height() - $(window).height()
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
$scrollUpButton = $('<img>', {
src: scrollButtonIcon,
id: scrollUpButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: 0
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
var scrollButtonTimer;
$(window).on('scroll', function() {
var dingHeight = $('#bluedeck_ding>div').height() ? $('#bluedeck_ding>div').height() : 0;
$scrollDownButton.css('bottom', dingHeight + 24 + 'px');
$scrollUpButton.css('bottom', dingHeight + 65 + 'px');
(mw.config.get('wgGEHelpPanelEnabled') && $('#mw-ge-help-panel-cta-button').length > 0) || $('#cat_a_lot').length > 0 || $('#proveit').length > 0 || $('.wordcount').length > 0 ? $scrollDownButton.css('left', '10px') && $scrollUpButton.css('left', '10px') : $scrollDownButton.css('left', 'unset') && $scrollUpButton.css('left', 'unset');
$(this).scrollTop() > 60 ? $scrollDownButton.fadeIn('slow') && $scrollUpButton.fadeIn('slow') : $scrollDownButton.fadeOut('slow') && $scrollUpButton.fadeOut('slow');
this.clearTimeout(scrollButtonTimer);
scrollButtonTimer = this.setTimeout(function() {
$scrollDownButton.fadeOut('slow');
$scrollUpButton.fadeOut('slow')
}, 2000)
});
$scrollDownButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
});
$scrollUpButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
})
})(jQuery, mw);
</syntaxhighlight>
[[分类:前端]]
[[分类:仓库]]
d361fed8c815cc52ec50cb619b1eb6bc1cae4fce
87
86
2022-10-28T13:38:34Z
Istudylinux
1
/* MediaWiki:Gadget-scrollUpButton.js */
wikitext
text/x-wiki
== 源码来源 ==
[https://zh.wikipedia.org/wiki/MediaWiki:Gadget-scrollUpButton.js MediaWiki:Gadget-scrollUpButton.js]
== 功能 ==
该源码实现的功能为在当前页面右下角添加'''置顶'''按钮和'''置底'''按钮。
== 可修改内容 ==
* 可以更改源码高亮的图片链接地址,默认使用中文维基百科的箭头图片。
* 仅需要'''上箭头'''的图片
== 源码 ==
=== 注意 ===
# 如果你安装了Extension:Gadget,你可以直接使用<code>MediaWiki:Gadget-scrollUpButton.js</code>作为脚本名称
# 如果你没有安装Gadget扩展,则将下面的代码复制到<code>MediaWiki:Common.js</code>
=== MediaWiki:Gadget-scrollUpButton.js ===
<syntaxhighlight lang="JavaScript" line="true" highlight="16,18">
/* scrollUpButton
* Add a button to scroll up to the top of the current page.
* @rev 3 (2019-28-07)
* @author Kwj2772
* @contributor Perhelion
* No internationalisation required
* [kowiki] Fixed an issue with help-panel-button ([[ko:User:ykhwong]])
* [zhwiki] Add a timer to autohide button, check more gadgets. Add scrollDownButton
* @from https://ko.wikipedia.org/?oldid=25440719
* @maintainer 安忆 ([[zh:User:AnYiLin]])
*/
(function($, mw) {
var scrollDownButtonId = 'scrollDownButton-zhwiki',
scrollUpButtonId = 'scrollUpButton-zhwiki';
var scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg';
if (!document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'))
scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg/32px-Font_Awesome_5_regular_arrow-circle-up_blue.svg.png';
$scrollDownButton = $('<img>', {
src: scrollButtonIcon,
id: scrollDownButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
transform: 'rotate(180deg)',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: $(document).height() - $(window).height()
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
$scrollUpButton = $('<img>', {
src: scrollButtonIcon,
id: scrollUpButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: 0
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
var scrollButtonTimer;
$(window).on('scroll', function() {
var dingHeight = $('#bluedeck_ding>div').height() ? $('#bluedeck_ding>div').height() : 0;
$scrollDownButton.css('bottom', dingHeight + 24 + 'px');
$scrollUpButton.css('bottom', dingHeight + 65 + 'px');
(mw.config.get('wgGEHelpPanelEnabled') && $('#mw-ge-help-panel-cta-button').length > 0) || $('#cat_a_lot').length > 0 || $('#proveit').length > 0 || $('.wordcount').length > 0 ? $scrollDownButton.css('left', '10px') && $scrollUpButton.css('left', '10px') : $scrollDownButton.css('left', 'unset') && $scrollUpButton.css('left', 'unset');
$(this).scrollTop() > 60 ? $scrollDownButton.fadeIn('slow') && $scrollUpButton.fadeIn('slow') : $scrollDownButton.fadeOut('slow') && $scrollUpButton.fadeOut('slow');
this.clearTimeout(scrollButtonTimer);
scrollButtonTimer = this.setTimeout(function() {
$scrollDownButton.fadeOut('slow');
$scrollUpButton.fadeOut('slow')
}, 2000)
});
$scrollDownButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
});
$scrollUpButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
})
})(jQuery, mw);
</syntaxhighlight>
[[分类:前端]]
[[分类:仓库]]
63416be4e15d3c9e32287fc37d367e95906005c4
前端:Mediawiki首页
3002
25
83
28
2022-10-28T13:14:41Z
Istudylinux
1
wikitext
text/x-wiki
== 说明 ==
要想使用该内容,有如下依赖:
* 扩展:模板样式(TemplateStyles)
* 多张图片,用于更改对应box的<code>Mediawiki.png</code>
来源:[https://www.mediawiki.org/w/index.php?title=Template:Main_page Template:Main_page]
== 代码 ==
'''代码目录结构以名称为主。'''
=== 模板:首页 ===
<syntaxhighlight lang="html" line="true">
<templatestyles src="模板:首页/styles.css" />
<div aria-hidden="true" role="presentation">
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题1</span></h3>
<div id="mainpage-admins" title="标题1" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题2</span></h3>
<div id="mainpage-users" title="标题2" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题3</span></h3>
<div id="mainpage-devs" title="标题3" class="items">
一些描述性的话。
* 条目1
* 条目2
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题4</span></h3>
<div id=mainpage-help-contribute" title="标题4" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题5</span></h3>
<div id="mainpage-news" title="标题5" class="items">
<div style="margin: auto; vertical-align:top; text-align:right}}">
<div class="mainpage_boxcontents_small">
* 条目1
* 条目2
</div>
<span class="plainlinks">[# <span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]</span>
<span class="plainlinks">[[File:Mediawiki.png|text-bottom|16px|link=https://www.facebook.com/MediaWikiProject]][[File:Mediawiki.png|text-bottom|17px|link=#]]</span>
</div>
</div>
</div>
</div>
</div>
__NOTOC__
</syntaxhighlight>
=== 模板:首页/styles.css ===
<syntaxhighlight lang="css" line="true" >
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}
</syntaxhighlight>
[[分类:前端]]
[[分类:仓库]]
b335482ccb168c32f78fc72193c52d2575b3ac54
文件:BWIKI.png
6
50
97
2022-10-28T14:26:45Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:BWIKI
3000
51
98
2022-10-28T14:26:59Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=BWIKI.png |网站名称=BWIKI |网站网址=https://wiki.biligame.com/ |网站分类=维基农场 |使用软件=MediaWiki |网站性质=公司 |用户权限=0 |内容许可= }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=BWIKI.png
|网站名称=BWIKI
|网站网址=https://wiki.biligame.com/
|网站分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=0
|内容许可=
}}
2d86dec86b25241f53cee82f3de1cd413999eae6
文件:WikiHow.png
6
52
99
2022-11-02T04:48:37Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:WikiHow
3000
53
100
2022-11-02T04:49:14Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=wikiHow.png |网站名称=wikiHow |网站网址=https://zh.wikihow.com/ |网站分类=综合 |使用软件=MediaWiki |网站性质= |用户权限=1 |内容许可= }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=wikiHow.png
|网站名称=wikiHow
|网站网址=https://zh.wikihow.com/
|网站分类=综合
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=
}}
5a569c43433726fe4d67b676cac7bf5498b8b717
网站:Fandom
3000
54
101
2022-11-03T05:58:13Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=Fandom.png |网站名称=Fandom |网站网址=https://www.fandom.com/ |网站分类=维基农场 |使用软件=MediaWiki |网站性质=公司 |用户权限=0 |内容许可= }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Fandom.png
|网站名称=Fandom
|网站网址=https://www.fandom.com/
|网站分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=0
|内容许可=
}}
444870c20632688033b972a2bfbaec8f5a8e2d4b
文件:Fandom.png
6
55
102
2022-11-03T05:59:22Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:首页
10
13
103
84
2022-11-03T06:00:36Z
Istudylinux
1
wikitext
text/x-wiki
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
* [[MediaWiki安装|MW安装]]
* [[入门编辑]]
* [[ShortURL配置]]
* [[移动端皮肤]]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>MW官网入门</span></h3>
<div id="mainpage-users" title="MW官网入门" class="items">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings MediaWiki配置设置列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/zh-hans MediaWiki常见问题]
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki发布邮件列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources 本地化MediaWiki到您的语言]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam 了解如何在您的wiki上打击破坏]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>仓库</span></h3>
<div id="mainpage-devs" title="仓库" class="items">
{{#dpl:
|category=仓库
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
{{#dpl:
|category=维基农场
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
最近添加:
{{#dpl:
|category=网站
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
<span class="plainlinks">[[网站|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
009e90cbf4f3bf0205df25e96f84c17f2e7b92c2
130
103
2022-11-07T07:49:36Z
Istudylinux
1
wikitext
text/x-wiki
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
{{#dpl:
|category=入门
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>MW官网入门</span></h3>
<div id="mainpage-users" title="MW官网入门" class="items">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings MediaWiki配置设置列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/zh-hans MediaWiki常见问题]
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki发布邮件列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources 本地化MediaWiki到您的语言]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam 了解如何在您的wiki上打击破坏]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>仓库</span></h3>
<div id="mainpage-devs" title="仓库" class="items">
{{#dpl:
|category=仓库
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
{{#dpl:
|category=维基农场
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
最近添加:
{{#dpl:
|category=网站
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
<span class="plainlinks">[[网站|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
c6cde4756e54f224a2dff6cbf710ad6ab6be4486
网站:中文音MAD维基
3000
57
105
2022-11-06T16:01:56Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=Otomad.svg |网站名称=中文音MAD维基 |网站网址=https://otomad.wiki/ |网站分类=二次元亚文化 |使用软件=MediaWiki |网站性质=个人 |用户权限=0 |内容许可=BY-NC }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Otomad.svg
|网站名称=中文音MAD维基
|网站网址=https://otomad.wiki/
|网站分类=二次元亚文化
|使用软件=MediaWiki
|网站性质=个人
|用户权限=0
|内容许可=BY-NC
}}
3fce31b6e482973abbf23c0977d9029d39666e71
106
105
2022-11-06T16:21:00Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Otomad.svg
|网站名称=中文音MAD维基
|网站网址=https://otomad.wiki/
|网站分类=二次元亚文化
|使用软件=MediaWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC
}}
e0f501548e09ce52b749a29b15911f743c06cede
113
106
2022-11-07T06:36:02Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Otomad.png
|网站名称=中文音MAD维基
|网站网址=https://otomad.wiki/
|网站分类=二次元亚文化
|使用软件=MediaWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC
}}
4b734fcc657d265edc002f6c6d6580f7ff8eaa20
文件:ACwiki.png
6
58
107
2022-11-06T16:23:26Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Cc-by-nc-sa.png
6
59
108
2022-11-06T16:25:56Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:ACwiki
3000
60
109
2022-11-06T16:26:11Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=ACwiki.png |网站名称=ACwiki |网站网址=https://acwiki.xyz/ |网站分类=二次元亚文化 |使用软件=DokuWiki |网站性质=个人 |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=ACwiki.png
|网站名称=ACwiki
|网站网址=https://acwiki.xyz/
|网站分类=二次元亚文化
|使用软件=DokuWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC-SA
}}
a41a04ab3cb71dac6dc5ca5bc94b861afd9cda02
146
109
2022-11-08T16:37:54Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=ACwiki.png
|英文名称=ACwiki
|网站网址=https://acwiki.xyz/
|一级分类=二次元亚文化
|使用软件=DokuWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC-SA
}}
aec1aab0fbe57971aaf61b838888cc11c57eabbb
网站:A+医学百科
3000
42
110
93
2022-11-06T16:34:14Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=A+医学百科.png
|网站名称=A+医学百科
|网站网址=http://www.a-hospital.com
|网站分类=医学
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-SA
}}
494cf549cf2ac8ebc0a7815d8cc3defd5f4a3e6c
147
110
2022-11-08T16:38:07Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=A+医学百科.png
|中文名称=A+医学百科
|网站网址=http://www.a-hospital.com
|一级分类=医学
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-SA
}}
830f4a2de8dfc01dd522e33fec6fac73924e4bf7
文件:Moegirlpedia-logo.png
6
61
111
2022-11-07T06:33:18Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:萌娘百科
3000
62
112
2022-11-07T06:35:15Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=Moegirlpedia-logo.png |网站名称=萌娘百科 |网站网址=https://zh.moegirl.org.cn/ |网站分类=泛ACGN |使用软件=MediaWiki |网站性质=公司 |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Moegirlpedia-logo.png
|网站名称=萌娘百科
|网站网址=https://zh.moegirl.org.cn/
|网站分类=泛ACGN
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-NC-SA
}}
9d3578357ecd5fce24c345a8c96f977bb3a7d359
152
112
2022-11-08T16:44:11Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Moegirlpedia-logo.png
|中文名称=萌娘百科
|网站网址=https://zh.moegirl.org.cn/
|一级分类=泛ACGN
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-NC-SA
}}
5827362025bfc38efd6088d0fc736b6f8d81f6dd
文件:Miraheze.svg
6
63
114
2022-11-07T06:45:28Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:Miraheze
3000
64
115
2022-11-07T06:46:21Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=Miraheze.svg |网站名称=Miraheze |网站网址=https://miraheze.org/ |网站分类=维基农场 |使用软件=MediaWiki |网站性质=公司 |用户权限=1 |内容许可=BY-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Miraheze.svg
|网站名称=Miraheze
|网站网址=https://miraheze.org/
|网站分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-SA
}}
f129ebac5247659e04c5a2fb2b130530c3beaca7
151
115
2022-11-08T16:43:50Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Miraheze.svg
|英文名称=Miraheze
|网站网址=https://miraheze.org/
|一级分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-SA
}}
8655f7e0e3b7f5415837f514d44b1cb0e24be0aa
文件:Chinese logo blue.png
6
65
116
2022-11-07T06:58:03Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:Imslp-new2.png
6
66
117
2022-11-07T06:58:23Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:国际乐谱库
3000
67
118
2022-11-07T07:01:37Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=Imslp-new2.png |网站名称=国际乐谱库 |网站网址=https://imslp.org/ |网站分类=乐谱 |使用软件=MediaWiki |网站性质=公司 |用户权限=1 |内容许可=BY-SA }} [[文件:Chinese logo blue.png|缩略图|左|替代=国内网站的Logo|国内网站的Logo]]”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Imslp-new2.png
|网站名称=国际乐谱库
|网站网址=https://imslp.org/
|网站分类=乐谱
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-SA
}}
[[文件:Chinese logo blue.png|缩略图|左|替代=国内网站的Logo|国内网站的Logo]]
458bdc6c83b86156dbc4b133c4732f40585bf129
文件:Arcaea logo.png
6
68
119
2022-11-07T07:06:25Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:Arcaea中文维基
3000
69
120
2022-11-07T07:06:39Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=Arcaea_logo.png |网站名称=Arcaea中文维基 |网站网址=http://wiki.arcaea.cn/ |网站分类=游戏 |使用软件=MediaWiki |网站性质=个人 |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Arcaea_logo.png
|网站名称=Arcaea中文维基
|网站网址=http://wiki.arcaea.cn/
|网站分类=游戏
|使用软件=MediaWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC-SA
}}
aa0169c6d8f3212fab4b3d86642f5c7f5f37762c
148
120
2022-11-08T16:39:33Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Arcaea_logo.png
|网站名称=Arcaea中文维基
|网站网址=http://wiki.arcaea.cn/
|一级分类=游戏
|二级分类=Arcaea
|使用软件=MediaWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC-SA
}}
2e4a30dc4ccc8f11bad9376d6f97edef949d8987
网站:WikiHow
3000
53
121
100
2022-11-07T07:25:45Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=wikiHow.png
|网站名称=wikiHow
|网站网址=https://zh.wikihow.com/
|网站分类=综合
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-NC-SA
}}
03e163ff3bcdaee62770753949e9960c6aac89bc
网站
0
70
122
2022-11-07T07:26:42Z
Istudylinux
1
创建页面,内容为“{{#cargo_query: tables=site |fields=_pageName=页面,网站名称,网站网址,网站分类,使用软件,内容许可 |where= |order by=_pageName |default= |format=table }}”
wikitext
text/x-wiki
{{#cargo_query:
tables=site
|fields=_pageName=页面,网站名称,网站网址,网站分类,使用软件,内容许可
|where=
|order by=_pageName
|default=
|format=table
}}
0369bb8d7c85e5c34362aa3c081991c37bb6c964
145
122
2022-11-08T16:37:05Z
Istudylinux
1
wikitext
text/x-wiki
{{#cargo_query:
tables=site
|fields=_pageName=页面,中文名称,网站网址,一级分类,二级分类,使用软件
|where=
|order by=_pageName
|default=
|format=table
}}
ced3abd54d39676be54eff406636aa23a9d04e83
文件:THMwiki.png
6
71
123
2022-11-07T07:30:02Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:THMwiki
3000
72
124
2022-11-07T07:30:43Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=THMwiki.png |网站名称=THMwiki |网站网址=https://wiki.thfmu.com/ |网站分类=医学 |使用软件=MediaWiki |网站性质= |用户权限=1 |内容许可=BY-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=THMwiki.png
|网站名称=THMwiki
|网站网址=https://wiki.thfmu.com/
|网站分类=医学
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-SA
}}
0fb259f61a14bb479474b0252f70fae15325545f
入门编辑
0
7
125
7
2022-11-07T07:46:58Z
Istudylinux
1
wikitext
text/x-wiki
== 概念 ==
* wikitext
* HTML标签
* 渲染结果(或输出结果)
=== wikitext ===
'''维基文本(wikitext)'''是使用wiki标记语言写成的文本内容。维基文本是内容、标记符以及元数据的混合。 wiki的所有页面的当前文本和历史文本均以维基文本的形式存储在text表的数据库中。<ref>[https://www.mediawiki.org/wiki/wikitext/zh 维基文本]</ref>
几乎所有的页面都是wikitext组合而成的。
=== HTML标签 ===
如果你会HTML更好,不会,也可以简单的使用它里面的一些标签。
* HTML 标签是由尖括号包围的关键词,比如 <html>
* HTML 标签通常是成对出现的,比如 <nowiki><b> 和 </b></nowiki>
* 标签对中的第一个标签是开始标签,第二个标签是结束标签
* 开始和结束标签也被称为开放标签和闭合标签<ref>[https://www.w3school.com.cn/html/html_jianjie.asp HTML标签]</ref>
=== 渲染结果 ===
这个是我们写完wikitext,点击下面的'''保存'''或者'''显示预览'''展现出来的页面内容排版,样式。
== 基础编辑 ==
=== 标题 ===
{| class="wikitable"
|+ 标题
|-
! wikitext !! 输出结果 !! 备注
|-
| <pre>== 二级标题 ==
=== 三级标题 ===
===== 五级标题 =====</pre>
|
<font style="font-weight: normal; font-size: 1.5em;border-bottom:1px solid #a2a9b1;font-family: 'Linux Libertine','Georgia','Times',serif;">二级标题</font>
<font style="font-weight: bold; font-size: 1.2em;">三级标题</font>
<font style="font-weight: bold; font-size: 100%;">五级标题</font>
| 建议将"=="作为最高级标题来使用,在编辑框上部有此快捷按钮可方便的使用<ref name="multiple">[https://wiki.ubuntu.org.cn/Wiki%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95 ubuntu中文wiki]</ref>,二级标题有下划线。
|}
=== 文本格式化,样式 ===
{| class="wikitable"
|+ 文本格式化,样式
|-
! 名称 !! wikitext !! 输出结果 !! 备注
|-
| 粗体
| <pre>'''粗体文本'''
<b>这个也是粗体</b></pre>
| '''粗体文本'''
<b>这个也是粗体</b>
| 上面的是标准的wikitext,下面的html标签
|-
| 斜体
| <pre>
''斜体文本''
<i>这个也是斜体哦!</i></pre>
|
''斜体文本''
<i>这个也是斜体哦!</i>
| 上面的是标准的wikitext,下面的html标签
|-
| 粗斜体
| <pre>
'''''粗斜体文字'''''
<i><b>另一种粗斜体</b></i>
</pre>
| '''''粗斜体文字'''''
<i><b>另一种粗斜体</b></i>
|-
| 缩进
|
<pre>
首行缩进,一般用于段落开头。
:首行缩进,一般用于段落开头。
::再缩
:::还能缩</pre>
|
首行缩进,一般用于段落开头。
:首行缩进,一般用于段落开头。
::再缩
:::还能缩
|
|-
| 删除线,下划线
| <pre>你可以使用<strike>删除线</strike>或<u>下划线</u>。</pre>
| 你可以使用<strike>删除线</strike>或<u>下划线</u>。
|-
| 上标
| <pre>2<sup>3</sup>=8</pre>
| 2<sup>3</sup>=8
|
|-
| 下标
| <pre>这是我的<sub>小尾巴~~</sub></pre>
| 这是我的<sub>小尾巴~~</sub>
|
|-
|居中
|<pre><center>使文字居中显示</center></pre>
|<center>使文字居中显示</center>
|
|-
| nowiki,不解析wikitext
|<pre>
* 使用'''标记'''
* <nowiki><nowiki>不使用'''标记'''</nowiki></nowiki>
</pre>
|
* 使用'''标记'''
* <nowiki>不使用'''标记'''</nowiki>
| 对于wikitext不让其渲染,对于HTML的标签有的也有用。<ref>[https://zh.wikipedia.org/wiki/Wikipedia:%E6%96%B0%E6%89%8B%E5%85%A5%E9%96%80/%E7%B6%AD%E5%9F%BA%E6%96%87%E6%9C%AC 新手入門/維基文本]</ref>
|}
=== 列表 ===
{| class="wikitable"
|+ 标题
|-
! 名称 !! wikitext !! 输出结果 !! 备注
|-
! colspan="4"| '''*,#'''号都作用于第一行
|-
| 无序列表
|
<pre>
* 条目1
** 条目1.1
*** 条目1.1.1
* 条目2
</pre>
|
* 条目1
** 条目1.1
*** 条目1.1.1
* 条目2
|
|-
| 有序列表
|
<pre>
# 条目1
## 条目1.1
## 条目1.2
## 条目1.3
# 条目2
## 条目2.1
### 条目2.1.1
</pre>
|
# 条目1
## 条目1.1
## 条目1.2
## 条目1.3
# 条目2
## 条目2.1
### 条目2.1.1
|
|-
| 定义列表
|
<pre>
;定义列表1
:项目一
;定义列表2
:项目二
</pre>
|
;定义列表1
:项目一
;定义列表2
:项目二
|
|-
| 混合列表
| <pre>
# 小标题1
#* 条目1
#*# 条目1.1
#*# 条目1.2
#* 条目2
# 小标题2
</pre>
|
# 小标题1
#* 条目1
#*# 条目1.1
#*# 条目1.2
#* 条目2
# 小标题2
|
|-
| 无效有序列表
| <pre>
# 1
不能插入,否则重新计数,但是无序列表可以
# 2
</pre>
|
# 条目1
不能插入,否则重新计数,但是无序列表可以
# 条目2
|
|}
=== 链接 ===
{| class="wikitable"
|+ 链接
|-
! 用途 !! wikitext !! 输出结果 !! 备注
|-
| 链接到本网站的某个页面
|
<pre>
# [[MediaWiki安装]]
# [[MediaWiki安装|安装]]
</pre>
|
# [[MediaWiki安装]]
# [[MediaWiki安装|安装]]
|
|-
| 链接到本网站的某个页面的某个章节
| <pre>
# [[MediaWiki安装#配置数据库]]
# [[MediaWiki安装#配置数据库|配置数据库]]</pre>
|
# [[MediaWiki安装#配置数据库]]
# [[MediaWiki安装#配置数据库|配置数据库]]
|
|-
| 不存在页面
| <pre>[[如何成为x]]</pre>
| [[如何成为x]]
| 显示红色都没有创建该页面
|-
| 外部链接
| <pre>
# http://www.baidu.com
# [http://www.baidu.com]
# [http://www.baidu.com 百度]
</pre>
|
# http://www.baidu.com
# [http://www.baidu.com]
# [http://www.baidu.com 百度]
|
|}
=== 表格 ===
{| class="wikitable"
|+ 简单表格
|-
! 名称 !! wikitext !! 输出结果 !! 备注
|-
| 2x2表格
|
<pre>
{| class="wikitable sortable"
|+ 标题文本
|-
! A !! B
|-
| 示例1 || 示例2
|-
| 示例3 || [[File:MediaWiki-2020-logo.png|center|50px]]
|}
</pre>
|
{| class="wikitable sortable"
|+ 标题文本
|-
! A !! B
|-
| 示例1 || 示例2
|-
| 示例3 || [[File:MediaWiki-2020-logo.png|center|50px]]
|}
| 表格里面什么都可以加。
|-
| 3x3表格
|<pre>
{| class="wikitable"
|-
! A !! B !! C
|-
| 示例1 || 示例2 || 示例3
|-
| 示例4 || [[File:MediaWiki-2020-logo.png|center|50px]] || 示例6
|-
| 示例7 || 示例8 || 示例9
|}
</pre>
|
{| class="wikitable"
|-
! A !! B !! C
|-
| 示例1 || 示例2 || 示例3
|-
| 示例4 || [[File:MediaWiki-2020-logo.png|center|50px]] || 示例6
|-
| 示例7 || 示例8 || 示例9
|}
|
|-
| 4x4无边框表格
|
<pre>
{|
|+ 标题文本
|-
! A !! B !! C !! D
|-
| [[File:MediaWiki-2020-logo.png|center|50px]] || 示例2 || 示例3 || 示例4
|-
| 示例5 || 示例6 || 示例7 || 示例8
|-
| 示例9 || 示例10 || 示例11 || 示例12
|-
| 示例13 || 示例14 || 示例15 || 示例16
|}
</pre>
|
{|
|+ 标题文本
|-
! A !! B !! C !! D
|-
| [[File:MediaWiki-2020-logo.png|center|50px]] || 示例2 || 示例3 || 示例4
|-
| 示例5 || 示例6 || 示例7 || 示例8
|-
| 示例9 || 示例10 || 示例11 || 示例12
|-
| 示例13 || 示例14 || 示例15 || 示例16
|}
|
|}
=== 图像 ===
{| class="wikitable"
|+ 标题
|-
! 作用 !! wikitext !! 输出结果 !! 备注
|-
| 插入一副图片
| <pre>[[File:MediaWiki-2020-logo.png]]</pre>
| [[File:MediaWiki-2020-logo.png]]
| 原始大小,无格式
|-
| 将宽度设为50px
|
<pre>[[File:MediaWiki-2020-logo.png|50px]]</pre>
| [[File:MediaWiki-2020-logo.png|50px]]
| 只能设定宽度,高度自动等比例缩放
|-
| 使用缩略图
| <pre>[[File:MediaWiki-2020-logo.png|thumb]]</pre>
| [[File:MediaWiki-2020-logo.png|thumb]]
| 默认宽度为180px,并自动右对齐
|-
| 使用缩略图,同时将宽度设为50px
| <pre>[[File:MediaWiki-2020-logo.png|thumb|50px]]</pre>
| [[File:MediaWiki-2020-logo.png|thumb|50px]]
|
|-
| 将宽度设为60px,并居中
| <pre>[[File:MediaWiki-2020-logo.png|center|50px]]</pre>
| [[File:MediaWiki-2020-logo.png|center|50px]]
| 可选的center还有left(靠左),right(靠右)
|-
| 添加说明文字
| <pre>[[File:MediaWiki-2020-logo.png|thumb|100px|Mediaiwiki Logo]]</pre>
| [[File:MediaWiki-2020-logo.png|thumb|50px|Mediaiwiki Logo]]
| 若没有写说明文字,则最后一个参数会被自动被视为说明文字<ref name="multiple" />
|-
| 添加链接
| <pre>[[File:MediaWiki-2020-logo.png|thumb|left|50px|[[MediaWiki安装|安装]]]]
[[File:MediaWiki-2020-logo.png|50px|link=MediaWiki安装]]</pre>
|
[[File:MediaWiki-2020-logo.png|thumb|50px|[[MediaWiki安装|安装]]]]
[[File:MediaWiki-2020-logo.png|50px|link=MediaWiki安装]]
| 左边第一个点击图片就跳转
|-
| 图片加框
| <pre>[[File:MediaWiki-2020-logo.png|100px|有框]]</pre>
| [[File:MediaWiki-2020-logo.png|100px|有框]]
| '''有框'''也可以使用英文'''frame'''
|}
=== 引用 ===
:通常,在写论文的时候,有的东西是你参考的内容,往往会在内容边上添加类似<sup>[1]</sup>样式。然后在论文最后面写上类似'''[1]马克思恩格斯全集:第1卷[M]. 北京:人民出版社,1956.'''<ref>[https://zhuanlan.zhihu.com/p/29513792 论文参考格式]</ref>
:这种格式,如果是有电子文献,一般的后面都会有复制参考格式的功能。而一般的网页内容就并不是那么严谨,不过也可以添加相应的参考地址供排错。
:你可以自己直接在内容后面添加<sup>[1]</sup>,然后在文章最后面写上参考的书籍等;这种比较麻烦,如果添加多个,或者之间插入参考,后面的序号需要重新排序;'''这里介绍Cite扩展的简单语法''',更多使用方法见[[cite使用]]。
[[File:edit_cite.png|center|有框|来自mediawiki的例子]]
=== 特殊字符 ===
见编辑栏第一行'''特殊字符'''。
== 参考 ==
<references />
[[分类:入门]]
17596f2d3dc4cab119f1d95183e9d3b21fb8186e
ShortURL配置
0
8
126
8
2022-11-07T07:47:08Z
Istudylinux
1
wikitext
text/x-wiki
将网站的网址变成形如<code>www.istudylinux.cn/index.php?title=首页</code>或者<code>www.istudylinux.cn/wiki/首页</code>。
== 域名格式 ==
以百度举例说明<ref>[https://zh.wikipedia.org/wiki/%E5%9F%9F%E5%90%8D 维基百科-域名]</ref>
* image.baidu.com
** com 顶级域名,还有其他的如org,net,cn等等
** baidu 二级域名(通常也是我们注册域名的时候注册的名称)
** image 三级域名,可以有多个,比如video,map等等
== 域名使用 ==
如果我们注册了域名,比如本站<code>istudylinux.cn</code>,我可以在域名控制台创造出无数个三级域名,比如
# mw.istudylinux.cn
# wiki.istudylinux.cn
# baidu.istudylinux.cn
# ...
这里域名使用遵循一定的“标准”(前提是你使用该域名来进行wiki网站的维护),比如mw官网一般都是建议大家都在域名后面跟上“/name”的格式。
== 优势和劣势 ==
* <cite>优势:缩短URL会对终端用户隐藏大部分技术细节,这对大部分站点拥有者都是有用的。除此之外,这还意味着当底层软件变动时可以保持url的稳定性。 对访问者来说,他们也更易于记忆并且让访问者更方便的根据URL进行导航。 此外,短URL提供优于搜索引擎优化的默认URL的优势,因为在计算页面排名时,搜索引擎可以不利地处理包含?的URL。</cite>
* <cite>劣势:需要配置,因此,根据您使用的托管环境,可能很难重新创建。 但是,由于每个广泛使用的Web服务器都能够配置为使用短URL,因此大多数付费Web托管服务都应支持此功能。任何不提供此功能的主机都不值得你花钱。</cite><ref>[https://www.mediawiki.org/wiki/Manual:Short_URL/zh#优势与劣势 短URL的优势与劣势]</ref>
== mw建议的格式 ==
'''注意:这里的格式啥的都是一般定义的,没有强制规定,想怎么用就怎么用,当然是在易用易维护的情况下。we happy just ok!'''
{| class="wikitable"
|+ 一些格式参考
|-
! URL !! 说明 !! 备注
|-
| http://istudylinux.cn/w/index.php?title=Page_title || MediaWiki的最新版本,有CGI支持 || 安装wiki后默认的格式
|- style="color:red;"
| http://istudylinux.cn/w/index.php/Page_title || MediaWiki的最新版本,无CGI支持 || 不推荐
|- style="color:green;"
| http://istudylinux.cnwiki/Page_title || 推荐,这是最常见的配置,维基百科就是这样 || 但是不是默认就是这样的,因为它需要服务端的修改。
|- style="color:green;"
| http://mw.istudylinux.cn/wiki/Page_title || 推荐 || 这样一个域名可以用在多个网站上
|- style="color:red;"
| http://istudylinux.cn/Page_title || 不推荐 ||
|- style="color:red;"
| http://wiki.istudylinux.cn/Page_title || 不推荐 ||
|}
== 配置 ==
=== 形如/index.php?title=Page_title ===
该形式目前是在mw安装完成后,默认是该种格式。不需要额外的配置
=== 形如/wiki/Page_title ===
需要修改如下文件
* LocalSettings.php
* nginx(或apache)
==== nginx ====
上述文件需要相互配合修改。
* [[ShortURL配置/nginx|nginx修改方法]]
==== apache ====
* [[ShortURL配置/apache|apache修改方法]]
== 名词 ==
=== CGI(通用网关接口) ===
<cite>简而言之,一个 HTTP POST 请求,从客户端经由 标准输入 发送数据到一个CGI 程序。同时携带其他数据,例如 URL 路径, HTTP头字段数据,被转换为进程的环境变量。</cite>
<cite>实现维基百科编辑的CGI程序的一个例子:首先用户代理程序向这个CGI程序请求某个名称的条目,如果该条目页面存在,CGI程序就会去获取那个条目页面的原始数据,然后把它转换成HTML并把结果输出给浏览器;如果该条目页面不存在,CGI程序则会提示用户新建一个页面。所有维基操作都是通过这个CGI程序来处理的。</cite><ref>[https://zh.wikipedia.org/wiki/%E9%80%9A%E7%94%A8%E7%BD%91%E5%85%B3%E6%8E%A5%E5%8F%A3 CGI-通用网关接口]</ref>
== 参考 ==
<references />
[[分类:入门]]
8ef7d173dd29639f9c279ac0749c6509d91a178c
MediaWiki安装
0
23
127
23
2022-11-07T07:48:12Z
Istudylinux
1
wikitext
text/x-wiki
运行供他人访问的网站或者自己局域网使用的网站,目前无外乎是以Linux系统为基础搭建的运行环境。
* 本文假设你已经有一台Linux服务器或者windows上有虚拟机。如未满足请参考[[系统环境]]
== 环境 ==
{| class="wikitable"
|+ 环境
|-
! 名称 !! 版本 !! 备注
|-
| 系统 || Debian 10.4 || Bullseye,或者ubuntu或者debian系操作系统
|-
| IP地址 || 192.168.199.148 || 局域网IP地址
|-
| Mediawiki版本 || 1.35.7 || 这个是LTS(长期支持版本),无论版本,安装过程基本一致
|-
| PHP || 7.4 || MediaWiki运行环境。这个一般有系统会跟随一个版本,Debian10.4上是7.4
|-
| mariadb || 10 || 数据库,存储数据。mysql和mariadb差不多
|-
| 安装路径 || /var/www/html || 这个可随意
|-
| 工具人 || debian || 会使用debian发行版的工具人,红帽系仅供参考
|-
| # || root提示 || 如无特殊说明,全站的#号都表示root用户命令行前缀提示
|}
== 安装MediaWiki运行使用环境 ==
本文参考官方文档。<ref>[https://www.mediawiki.org/wiki/Manual:Installation_requirements/zh 安装要求]</ref><ref>[https://www.mediawiki.org/wiki/Manual:Installing_MediaWiki 安装MediaWiki]</ref>
=== 下载MediaWiki安装包 ===
[https://pan.baidu.com/s/1KbgY61fAxo7izxJ44uf46w 百度网盘提取码:haha]
上传到服务器。(假设在目录/root/目录下)
=== 安装PHP环境 ===
<pre>
# apt install php7.3-apcu php7.3-intl php7.3-mbstring php7.3-xml php7.3-mysql php7.3-fpm php7.3-json php7.3-gd
</pre>
* 不同的Debian(Ubuntu)可能php的版本不一样,输入php时候使用<code>Table</code>按键看会自动补全什么版本,替换就行了.
=== 安装数据库(MariaDB) ===
<pre>
# apt install mariadb-server
</pre>
=== 安装nginx ===
<pre>
# apt remove --purge apache2
# apt install nginx
</pre>
== 配置环境 ==
=== MediaWiki安装包 ===
将之前在root目录下的安装包解压到/var/www/html目录下
<pre>
# tar -xvf mediawiki-1.35.5.tar.gz -C /var/www/html
# mv /var/www/html/mediawiki-1.35.5 /var/www/html/mw
# chown -R www-data:www-data /var/www/html/mw
</pre>
=== 数据库 ===
==== 配置数据库 ====
刚装上的数据库是默认用户为root,密码无,所以直接使用下面的命令登录数据库,下面'''高亮'''的为我们需要输入的命令:
<syntaxhighlight lang="shell" line="true" highlight="2-3,7,11,15">
旁白:请以root登录并创建专门用于mediawiki使用的数据库fun,刚安装root没有密码直接回车。
# mysql -u root -p
MariaDB [(none)]> create database fun;
Query OK, 1 row affected (0.000 sec)
旁白:新建 mw 用户使用 123456 作为密码登录,且只能本地用户可以使用
MariaDB [(none)]> create user mw@'localhost' identified by '123456';
Query OK, 0 rows affected (0.000 sec)
旁白:授权给 wp用户 数据库fun的所有权限。
MariaDB [(none)]> grant all on fun.* to mw@'localhost' identified by '123456' with grant option;
Query OK, 0 rows affected (0.000 sec)
旁白:然后完成退出
MariaDB [(none)]> exit;
</syntaxhighlight>
==== 验证 ====
<syntaxhighlight lang="shell" line="true" highlight="2-3">
旁白:现在使用刚才新建的 mw 用户进行验证,并输入之前设置的密码。下面'''高亮'''的为我们需要输入的命令。
# mysql -u mw -p
MariaDB [(none)]> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| fun |
+--------------------+
2 rows in set (0.000 sec)
MariaDB [(none)]> exit
</syntaxhighlight>
使用命令显示当前的数据库,正确的显示应该是上面的数据,如果没有看到'''fun'''这个数据库,则说明前面操作有误。
=== 配置nginx ===
* 在<code>/etc/nginx/sites-available</code>目录下添加配置文件,随意命名,比如这里使用<code>wiki.conf</code>,该文件的内容如下,语句前带#号的是注释。
<pre>
server {
listen 80 default_server;
listen [::]:80 default_server;
#旁白:这个是上门MediaWiki的解压目录
root /var/www/html/mw;
index index.php index.html index.htm index.nginx-debian.html;
server_name _;
location / {
try_files uriuri/ =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
}
</pre>
''如果想配置ShortURL请参考[[ShortURL配置]]。''
* <code>root</code>:后面添加MediaWiki的安装路径
* <code>index</code>:在后面添加index.php
* <code>server_name</code>:后面默认是_,则访问使用Linux的系统IP,如果是外网或者域名,则
** <code>server_name mw.istudylinux.cn;</code>
然后进入到<code>/etc/nginx/sites-enabled</code>目录
<pre>
# cd /etc/nginx/sites-enabled
# rm default
# ln -sf ../sites-available/wiki.conf .
</pre>
然后重启nginx
<pre>
# systemctl restart nginx
</pre>
现在可以打开网页,是否能够出现安装页面,如果没有或者报错,请检查上门的步骤。
== 网页端安装 ==
获取你Linux服务器的IP地址,然后在同一局域网里的浏览器打开该IP地址,比如这里是<code>192.168.199.148</code>
=== 进入安装页面 ===
[[File:mw_install1.png|700px|center|选择语言]]
<center>选择语言</center>
[[File:mw_install2.png|700px|center|环境检查]]
<center>环境检查</center>
=== WIKI数据库配置 ===
[[File:mw_install3.png|400px|center|WIKI数据库配置]]
[[File:mw_install4.png|400px|center|WIKI数据库配置]]
=== 网站名称,管理员设置 ===
[[File:mw_install5.png|700px|center|网站管理员设置]]
=== 版权,皮肤,扩展 ===
[[File:mw_install6.png|700px|center|版权,皮肤,扩展]]
[[File:mw_install7.png|600px|center|安装继续]]
=== 安装完成下载LocalSettings.php ===
[[File:mw_install8.png|600px|center|安装完成,下载LocalSettings.php]]
* 然后将其LocalSettings.php上传至服务器mw安装目录下,同index.php同级目录。
* 然后点击'''进入网页'''
[[File:mw_install9.png|600px|center|上传完成]]
== 参考 ==
<references />
[[分类:入门]]
0825a3de0200ec050f712c2fe8559b6293a3d513
移动端皮肤
0
11
128
11
2022-11-07T07:48:17Z
Istudylinux
1
wikitext
text/x-wiki
== 移动端皮肤 ==
PC和移动端屏幕大小不一衍生出来的问题,网页开发体现的是2倍图,3倍图<ref>https://blog.csdn.net/m0_48387335/article/details/120358167</ref>等等。有兴趣可以参考[https://blog.csdn.net/m0_48387335/article/details/120358167 移动端常见小知识]
== 移动端开发 ==
网页的移动端开发一般有两种方法:
# '''专门定制手机网页'''(比如:[https://m.taobao.com 淘宝网手机端],[https://m.jd.com 京东手机端])
# '''响应式布局'''(可以用手机看看[https://wiki.biligame.com/wiki/%E9%A6%96%E9%A1%B5 bilili wiki],和[https://www.huijiwiki.com/wiki/%E9%A6%96%E9%A1%B5 灰机wiki]的网站)
前者需要定制,专门针对相应的场景,重新绘图,写CSS样式,JS脚本,对接MW。难度地狱级!!!不过,mw官方已经有几款针对手机的皮肤,[https://www.mediawiki.org/wiki/Skin:Minerva_Neue Minerva Neue],[https://www.mediawiki.org/wiki/Skin:WPtouch WPtouch]等。
后者,目前MW的几乎所有皮肤都支持响应式布局。
== 移动端应用场景 ==
# PC端和移动端'''共用'''一套皮肤
# PC端和移动端'''分别使用'''各自的皮肤
针对第一种,则是直接使用默认的皮肤就行,默认的皮肤如果支持'''响应式布局''',在手机上这就会出现比较合适的视图。否则就是缩小的PC端视图!
而第二种则需要在<code>LocalSettings.php</code>添加对应的代码。
== 配置 ==
针对上述两种情况,进行下面两种配置。
=== 共用 ===
不用啥配置,只需要在<code>LocalSettings.php</code>里面添加<code>$wgDefaultSkin = 'vector';</code>就行了。
=== 分别使用 ===
<pre>
## 将下面的代码添加到LocalSettings.php里面
## Default skin: you can change the default skin.
## Use the internal symbolic names, ie 'vector', 'monobook':
if (preg_match("/(mobile|webos|opera mini|android|blackberry|tablet)/i", $_SERVER['HTTP_USER_AGENT'])) {
$wgDefaultSkin = 'minerva';
} else {
$wgDefaultSkin = 'vector';
}
</pre>
完整代码<ref>https://www.mediawiki.org/wiki/Simple_mobile_skin_auto_change</ref>
* 参数1,<code>"/(mobile|weos....)/i"</code>正则匹配表达式,和参数2返回的字符串进行匹配
* 参数2,<code>$_SERVER['HTTP_USER_AGENT']</code>获取用户使用的浏览器标识<ref>https://www.php.net/manual/zh/tutorial.useful.php</ref>
* <code>preg_match</code>函数用于参数1能否在参数2找到,匹配到就立即停止,返回真,然后不会继续匹配后面的<ref>https://www.php.net/manual/zh/function.preg-match.php</ref>
* 判定完成后,根据结果设置<code>wgDefaultSkin</code>的值
== 调试(模拟手机) ==
* 直接使用手机查看网站页面
* 使用谷歌浏览器、火狐浏览器、360(极速)浏览器或者其他浏览器按下F12,点击图片中的指向。[[file:浏览器模拟手机按钮.png|frame|模拟按钮]]
== 注意 ==
如果十分在意移动端的<b>内容</b>布局,则在写完文章后进行两边调试。
== 内容为主 ==
先做内容再去搞装饰吧!
== 参考 ==
<references />
[[分类:入门]]
7a9270796b503ab346a8af6c19251725f5ae06ae
解析器函数
0
24
129
25
2022-11-07T07:48:29Z
Istudylinux
1
wikitext
text/x-wiki
== #expr ==
这个函数计算数学表达式并返回计算值或者布尔结果。<ref name="pF">[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions/zh 帮助:扩展:解析器函数]</ref>
* 1(true)
* 0(false)
{| class="wikitable" style="overflow:auto;"
|+ #expr测试用例
|-
| colspan='3' | <nowiki>{{#expr: 表达式}}</nowiki><br>完整的数学计算请参考[https://meta.wikimedia.org/wiki/Special:MyLanguage/Help:Calculation MediaWiki计算]
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#expr: 1 and -1}},{{#expr: 1 and 0}},{{#expr: 2 and 3}}</nowiki></code> || {{#expr: 1 and -1}},{{#expr: 1 and 0}},{{#expr: 2 and 1}} || 逻辑与,非0以外的数都是true(1),false(0)
|-
| <code><nowiki>{{#expr: 1 or -1}},{{#expr: 1 or 0}},{{#expr: 2 or 3}}</nowiki></code> || {{#expr: 1 or -1}},{{#expr: 1 or 0}},{{#expr: 2 or 3}} || 逻辑或,非0以外的数都是true(1),false(0)
|-
| <code><nowiki>{{#expr: 1>2}},{{#expr: 1<=2}}</nowiki></code> || {{#expr: 1>2}},{{#expr: 1<=2}} || 逻辑判断大小,非0以外的数都是true(1),false(0)
|-
| <code><nowiki>{{#expr: (1+1*8/2) mod 3}}</nowiki></code> || {{#expr: (1+1*8/2) mod 3}} || 混合运算
|-
| <code><nowiki>{{#expr: pi}},{{#expr: 1e3}}</nowiki></code> || {{#expr: pi}},{{#expr: 1e3}} || π,科学计数
|-
| <code><nowiki>{{#expr: sin30}},{{#expr: sin(30*pi/180)}}</nowiki></code> || {{#expr: sin30}},{{#expr: sin(30*pi/180)}} || 正弦
|-
| <code><nowiki>{{#expr: 1/3 round 5}},{{#expr: 1/6 round 5}}</nowiki></code> || {{#expr: 1/3 round 5}},{{#expr: 1/6 round 5}} || round取整,最后的小数大于5会区6,否则使用原数
|-
| <code><nowiki>{{#expr: 1234.5678 round -2}},{{#expr: 1234.5678 round 2}}</nowiki></code> || {{#expr: 1234.5678 round -2}},{{#expr: 1234.5678 round 2}} || -2往小数点左边取2位,正数往小数点右边取2位
|-
| <code><nowiki>{{#expr: {{NUMBEROFUSERS}}}},{{#expr: {{NUMBEROFUSERS}}+5}}</nowiki></code> || {{#expr: {{NUMBEROFUSERS}}}},{{#expr: {{NUMBEROFUSERS}}+5}} || 配合魔术字
|-
| <pre>{{#expr: 45,000 + 100}}
{{#expr: 2 =}}</pre> || {{#expr: 45,000 + 100}}<br>{{#expr: 2 =}} || 错误使用会出现提示信息
|}
== #ifexpr ==
此函数会判断数学表达式并根据其布尔值结果返回对应的字符串。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #ifexpr测试用例
|-
| colspan='3' | <nowiki>{{#ifexpr: expression | value if true | value if false }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#ifexpr: {{#expr: 2 > 1}} | yes | no }}
{{#ifexpr: 2 > 1 | yes | no }}
</pre> || {{#ifexpr: {{#expr: 2 > 1}} | yes |no}}<br>{{#ifexpr: 2 > 1 | yes | no }} ||
|-
| <pre>{{#ifexpr: {{#expr: 2+1*8 }} | yes | no }}
{{#ifexpr: 2+1*8 | yes | no }}
</pre> || {{#ifexpr: {{#expr: 2+1*8 }} | yes |no}}<br>{{#ifexpr: 2+1*8 | yes | no }} ||
|-
| <pre>{{#ifexpr: | yes | no }}
{{#ifexpr: 0 | yes | no }}
{{#ifexpr: 1 | yes | no }}
</pre> || {{#ifexpr: | yes | no }}<br>{{#ifexpr: 0 | yes | no }}<br>{{#ifexpr: 1 | yes | no }} ||
|}
== #if ==
这个函数判断一个字符串是否为空。只包含空格的字符串被视为空字符串。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #if测试用例
|-
| colspan='3' | <nowiki>{{#if: 测试字符串 | 试字符串非空时的取值 | 测试字符串为空或仅包含空白字符时的取值 }}</nowiki><br/><nowiki>{{#if: 参数1 | 参数2 | 参数3 }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#if:| yes |no}}</nowiki></code> || {{#if:|yes|no}} || 空值
|-
| <code><nowiki>{{#if: |yes |no}}</nowiki></code> || {{#if: | yes |no}} || 参数输入的是空格
|-
| <pre>{{#if:
|yes|no}}</pre> || {{#if:
|yes |no}} || 参数输入的是空格,回车等
|-
| <code><nowiki>{{#if:isl| yes |no}}</nowiki></code> || {{#if:isl|yes|no}} ||
|-
| <code><nowiki>{{#if: 1==2 | yes | no }}</nowiki></code> || {{#if: 1==2 | yes | no }} ||
|-
| <code><nowiki>{{#if: 0 |yes | no }}</nowiki></code> || {{#if: 0 |yes | no }} || 参数1都是当字符串处理
|-
| <code><nowiki>{{#if: isl | yes }}</nowiki></code> || {{#if: isl | yes }} || 最后一个参数可以忽略
|-
| <code><nowiki>{{#if: | | no }}</nowiki></code> || {{#if: | |no }} ||
|-
| <code><nowiki>{{#if:{{#if:isl|yes|no}}|里面返回字符串|里面返回空}}</nowiki></code> || {{#if:{{#if:isl|yes|no}}|里面返回字符串|里面返回空}} || 嵌套使用
|-
| <code><nowiki>{{#if:{{#if:isl| |no}}|里面返回字符串|里面返回空}}</nowiki></code> || {{#if:{{#if:isl||no}}|里面返回字符串|里面返回空}} || 嵌套使用
|}
== #ifeq ==
这个函数判断两个输入字符串是否相同,并根据结果输出两个字符串的其中一个。 如果需要更多的比较和输出字符串,请考虑使用[[##switch|#switch]]。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #ifeq测试用例
|-
| colspan='3' | <nowiki>{{#ifeq: 字符串1 | 字符串2 | 两个字符串相等 | 不相等 }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#ifeq: 01 | 1 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:01|1|相等|不相等}} || 如果两个参数都是数字,进行数字比较
|-
| <code><nowiki>{{#ifeq: 0 | -0 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:0|-0|相等|不相等}} || 如果两个参数都是数字,进行数字比较
|-
| <code><nowiki>{{#ifeq: 1e3 | 1000 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:1e3|1000|相等|不相等}} ||
|-
| <code><nowiki>{{#ifeq: {{#expr:10^3}}| 1000 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:{{#expr:10^3}}|1000|相等|不相等}} ||
|-
| <code><nowiki>{{#ifeq: "01" | "1" | 相等 | 不相等 }}</nowiki></code> || {{#ifeq:"01"|"1"|相等|不相等}} ||
|-
| <code><nowiki>{{#ifeq: 真的 | 假的 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq: 真的 | 假的 | 相等 | 不相等 }}</code> ||
|-
| <code><nowiki>{{#ifeq: Abc | abc |相等| 不相等 }}</nowiki></code> || {{#ifeq: Abc | abc |相等| 不相等 }} ||
|-
| <code><nowiki>{{#ifeq: 10^3 | 1000 | 相等 | 不相等 }}</nowiki></code> || {{#ifeq: 10^3 | 1000 | 相等 | 不相等 }} ||
|-
| <code><nowiki>{{#ifeq: </nowiki><nowiki><nowiki>foo</nowiki></nowiki> <nowiki>| <nowiki>foo</nowiki></nowiki> <nowiki>| 相等 | 不相等}}</nowiki></code> || {{#ifeq: <nowiki>foo</nowiki> | <nowiki>foo</nowiki>| 相等 | 不相等 }} || 每个标签在解析的时候回自动添加相关的独立标记
|-
| colspan='3' | 其他的比较如{{FULLPAGENAME}},模板
|}
== #iferror ==
这个函数接收一个输入字符串,返回两个结果中的一个。如果输入字符串包含一个由其他解析器函数(比如[[##expr|#expr]]、[[##time|#time]]和[[##rel2abs|#rel2abs]])、模板错误(比如模板循环和模板递归)或其他解析器“软错误”生成的<code>class="error"</code>的HTML对象,那么视为真。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #iferror测试用例
|-
| colspan='3' | <nowiki>{{#iferror: test string | value if error | value if correct }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#iferror: {{#expr: 1 + 2 }} | 用法错误 | 用法正确 }}
{{#iferror: {{#expr: 1 + 2 }} | 用法错误 }}
</pre> || {{#iferror: {{#expr: 1 + 2 }} | 用法错误 | 用法正确 }}<br>{{#iferror: {{#expr: 1 + 2 }} | 用法错误 }} ||
|-
| <code><nowiki>{{#iferror: {{#expr: 2 =}} | 用法错误 | 用法正确 }}</nowiki></code> || {{#iferror: {{#expr: 2 =}} | 用法错误 | 用法正确 }} ||
|-
| <code><nowiki>{{#iferror: <strong class="error">a</strong> | 标签带error | 标签不带error }}</nowiki></code> || {{#iferror: <strong class="error">a</strong> | 标签带error | 标签不带error }} ||
|-
| <code><nowiki> {{#iferror: {{#expr: 2 =}} | 解析结果带error | 解析结果带不带error }}</nowiki></code> || {{#iferror: {{#expr: 2 =}} | 解析结果带error | 解析结果带不带error }} ||
|}
== #rel2abs ==
这个函数将文件的相对路径转换为绝对路径。<ref name="pF" />
* <code>.</code>本级目录
* <code>../</code>上级目录
* <code>/标题</code>下级目录
{| class="wikitable" style="overflow:auto;"
|+ #rel2abs测试用例
|-
| colspan='3' | <nowiki>{{#rel2abs: path }}</nowiki><br><nowiki>{{#rel2abs: path | base path }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#rel2abs: {{PAGENAME}} |模板:a/b/c }}
{{#rel2abs: {{PAGENAME}}}}</pre> || {{#rel2abs: {{PAGENAME}} |模板:a/b/c }}<br>{{#rel2abs: {{PAGENAME}}}} ||
|-
| <pre>{{#rel2abs: ./{{PAGENAME}} |模板:a/b/c }}
{{#rel2abs: /{{PAGENAME}} |模板:a/b/c }}</pre> || {{#rel2abs: ./{{PAGENAME}} |模板:a/b/c }}<br>{{#rel2abs: /{{PAGENAME}} |模板:a/b/c }} || ./和/是一样的
|-
| <pre>{{#rel2abs: ../{{PAGENAME}} |模板:a/b/c }}
{{#rel2abs: ../../{{PAGENAME}} |模板:a/b/c }}
{{#rel2abs: ../../../{{PAGENAME}} |模板:a/b/c }}
</pre> || {{#rel2abs: ../{{PAGENAME}} |模板:a/b/c }}<br>{{#rel2abs: ../../{{PAGENAME}} |模板:a/b/c }}<br>{{#rel2abs: ../../../{{PAGENAME}} |模板:a/b/c }} ||
|-
| <pre>{{#rel2abs: ../../ |模板:a/b/c }}
{{#rel2abs: .././ |模板:a/b/c }}
{{#rel2abs: .././../ |模板:a/b/c }}
</pre> || {{#rel2abs: ../../ |模板:a/b/c }}<br>{{#rel2abs: .././ |模板:a/b/c }}<br>{{#rel2abs: .././../ |模板:a/b/c }} ||
|-
| <pre>{{#rel2abs: ../../ |模板:a/b/c }}
{{#rel2abs: ../../../ |模板:a/b/c }}
{{#rel2abs: ../../../../ |模板:a/b/c }}
</pre> || {{#rel2abs: ../../ |模板:a/b/c }}<br>{{#rel2abs: ../../../ |模板:a/b/c }}<br>{{#rel2abs: ../../../../ |模板:a/b/c }} ||
|}
== #ifexist ==
这个函数将一组字符串作为输入,并翻译成页面标题,然后根据在本地wiki上是否存在该页面而返回对应的值。<ref name="pF" />尽量少用。
'''''被视为“高开销(expensive)解析器函数”,每个页面调用这类函数的次数(包括包含于嵌入式模板的函数)存在一个限制。'''''
{| class="wikitable" style="overflow:auto;"
|+ #ifexist测试用例
|-
| colspan='3' | <nowiki>{{#ifexist: 页面名称 | 页面存在结果 | 页面不存在结果 }}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#ifexist: 模板:我的模板 | 页面存在 | 页面不存在 }}</nowiki></code> || {{#ifexist: 模板:我的模板 | 页面存在 | 页面不存在 }} ||
|-
| <code><nowiki>{{#ifexist: File:MediaWiki.png | 文件存在 | 文件不存在 }}</nowiki></code> || {{#ifexist:File:MediaWiki.png | 文件存在 | 文件不存在 }} ||
|-
| <code><nowiki>{{#ifexist: Mediawiki:common.css | 页面存在 | 页面存在 }}</nowiki></code> || {{#ifexist: Mediawiki:common.css | 文件存在 | 文件不存在 }} || 只要是标题都可以
|}
== #switch ==
该函数将一个输入值同若干个测试用例(test cases)做比较,如果找到匹配,返回有关联的字符串。<ref name="pF"/>
语法:
<pre>{{#switch: comparison string
| case = result
| case = result
| ...
| case = result
| default result
}}
</pre>
=== 默认值 ===
{| class="wikitable" style="overflow:auto;"
|+ #switch默认值
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#switch: 1 | 1 = 为1 | 2 = 为2 | 其他值 }}
{{#switch: 3 | 1 = 为1 | 2 = 为2 | 其他值 }}</pre> || 为1<br>其他值 || 默认值通常写在最后
|-
| <pre>{{#switch: 1
| 1 = 为1
| #default = 其他值
| 2 = 为2 }}</pre> || 其他值 || 使用<code>#default</code>可以出现在任意位置
|-
| <pre>
{{#switch: 1
| 1 = 为1
| 2 = 为2 }}</pre> || || 不写默认值不返回结果
|}
=== 分组 ===
{| class="wikitable" style="overflow:auto;"
|+ #switch分组
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#switch: 2
| 1
| 2
| 3 = 小于等于3
| 4
| 5
| 6 = 大于3,小于7
| 不在区间范围,请输入1-6
}}</pre> || 小于等于3 || 1,2,3为一组,4,5,6为一组
|}
=== 比较 ===
若被比较字符串和测试用例字符串都是数字,那么按照数值进行比较;反之若存在一个非纯数字符串,都会按照字符串比较规则进行。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #switch比较
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#switch: | = Nothing | 3 = 结果为3 | 其他值 }}</pre> || Nothing || 可以为空
|-
| <pre>{{#switch: 1+2 | 2 = 结果为2 | 3 = 结果为3 | 其他值 }}</pre> || 其他值 || 作为字符串“1+2”
|-
| <pre>{{#switch: {{#expr:1+2}} | 2 = 结果为2 | 3 = 结果为3 | 其他值 }}</pre> || 结果为3 || 计算后再比较
|}
=== 等号 ===
{| class="wikitable" style="overflow:auto;"
|+ #switch等号
|-
! 示例 !! 输出结果 !! 备注
|-
| <pre>{{#switch: 1=2
| 1=2 = raw
| 1{{=}}2 = template
| default
}}</pre> || template || 使用模板将“=”号包含
|-
| <pre>{{#switch: 1=2
| 1&#61;2 = html
| default
}}</pre> || html || 使用HTML标识码<code><nowiki>&#61;</nowiki></code>
|}
=== 使用参数 ===
一般是用在模板里。
<pre>
{{#switch: {{{1}}}
| 1 = 为1
| 2 = 为2
| 其他值
}}</pre>
=== 和#ifeq的转换 ===
* <code><nowiki>{{#switch:{{{1}}} |condition1=branch1 |condition2=branch2 |condition3=branch3 |branch4}}</nowiki></code>
等效于
* <code><nowiki>{{#ifeq:{{{1}}}|condition1 |branch1 |{{#ifeq:{{{1}}}|condition2 |branch2 |{{#ifeq:{{{1}}}|condition3 |branch3 |branch4}}}}}}</nowiki></code>
比如:
<pre>
{{#switch:abc
|Abc = 输入为Abc
|abc = 输入为abc
|输入未知
}}
等价于:
{{#ifeq: abc | Abc | 输入为Abc | {{#ifeq: abc | abc | 输入为abc | 输入未知 }} }}
</pre>
== #time ==
该解析器函数接收一个(公历的)日期或者时间,并根据给定的语法将其格式化。可以指定日期/时间对象,页面最后被渲染为HTML时的时间。<ref name="pF" />更加详细的参考[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions/zh##time 官网#time]。
* <nowiki>{{#time: format string }}</nowiki>
* <nowiki>{{#time: format string | date/time object }}</nowiki>
* <nowiki>{{#time: format string | date/time object | language code }}</nowiki>
* <nowiki>{{#time: format string | date/time object | language code | local }}</nowiki>
** date/time object是使用的[https://www.php.net/function.strtotime PHP函数strtotime]的日期格式
{| class="wikitable" style="overflow:auto;"
|+ #time
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#time: Y-m-d }}</nowiki></code> || {{#time: Y-m-d }}
| rowspan='4' |
* '''Y:'''年,返回4位数的年份
* '''y:'''年,返回2位数的年份
* '''n:'''月,9,12
* '''m:'''月,09,12,0填充
* '''j:'''日,9,12
* '''d:'''日,09,12,0填充
* '''z:'''年内的第几天,1月1日是第0天
* '''g:'''12小时制,7点
* '''h:'''12小时制,07点,0填充
* '''G:'''24小时制,7点
* '''H:'''24小时制,07点,0填充
* '''i:'''分
* '''s:'''秒
* '''D:'''星期几,{{#time:D}}
* '''N:'''星期几,{{#time:N}}
* '''W:'''周数,{{#time:W}}
|-
| <code><nowiki>{{#time: y年m月d日 H:i:s }}</nowiki></code> || {{#time: y年m月d日 H:i:s }}
|-
| <code><nowiki>{{#time: y年m月d日 H:i:s |+8 hours}}</nowiki></code> || {{#time: y年m月d日 H:i:s |+8 hours}}
|-
| <code><nowiki>{{#time: Y年的第W周,第z天}}</nowiki></code> || {{#time: Y年的第W周,第z天}}
|}
== #timel ==
该函数等价于{{#time: ... }},其中local参数设置为true,因此总是使用wiki的本地时间。<ref name="pF" />更加详细的参考[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions/zh##time 官网#time]。
* <nowiki>{{#timel: format string }}</nowiki>
* <nowiki>{{#timel: format string | date/time object }}</nowiki>
* <nowiki>{{#timel: format string | date/time object | language code }}</nowiki>
** date/time object是使用的[https://www.php.net/function.strtotime PHP函数strtotime]的日期格式
{| class="wikitable" style="overflow:auto;"
|+ #timel
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#timel: Y-m-d }}</nowiki></code> || {{#timel: Y-m-d }}
| rowspan='4' | 其他语法同[[##time|#time]]
|-
| <code><nowiki>{{#timel: y年m月d日 h:i:s }}</nowiki></code> || {{#timel: y年m月d日 h:i:s }}
|-
| <code><nowiki>{{#timel: y年m月d日 H:i:s}}</nowiki></code> || {{#timel: y年m月d日 H:i:s}}
|-
| <code><nowiki>{{#timel: Y年的第W周,第z天}}</nowiki></code> || {{#timel: Y年的第W周,第z天}}
|}
== #titleparts ==
此函数将页面标题根据斜杠划分成多个分段,然后输出返回这些分段中的部分。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #titleparts
|-
| colspan='3' | <nowiki>{{#titleparts: 页面名称 | 需要返回的分段数量 | 要返回的第一个分段 }}</nowiki><br><code>需要返回的分段数量</code>默认为0<br><code>要返回的第一个分段</code>未指定或者是0则默认为1
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e }}</nowiki></code> || {{#titleparts: a/b/c/d/e}} || 返回的首字母有大写
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e|0|2 }}</nowiki></code> || {{#titleparts: a/b/c/d/e|0|2 }} || 返回的首字母没有大写
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | 2 | 2 }}</nowiki></code> || {{#titleparts: a/b/c/d/e | 2 | 2 }} ||
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | | 2 }}</nowiki></code> || {{#titleparts:a/b/c/d/e | | 2 }} ||
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | -1 }}</nowiki></code> || {{#titleparts: a/b/c/d/e | -1 }} || 从字符串的末尾剥离1段
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | -2 }}</nowiki></code> || {{#titleparts: a/b/c/d/e | -4 }} || 从字符串的末尾剥离4段
|-
| <code><nowiki>{{#titleparts: a/b/c/d/e | -1 | 2 }}</nowiki></code> || {{#titleparts: a/b/c/d/e | -1 | 2 }} || 从字符串的末尾剥离一段,然后返回第二段及以后的段
|-
| <code><nowiki>{{#titleparts:a/b/c/d/e | -1 | -2 }}</nowiki></code> || Talk:a/b/c/d/e | -1 | -2 }} || 从倒数第二个元素开始复制;从字符串的末尾剥离一段
|}
== 字符串函数 ==
=== #len ===
<code>#len</code>函数返回指定字符串的长度。<ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#len:string}}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#len:abcedefg}}</nowiki></code> || {{#len:abcedefg}} ||
|-
| <code><nowiki>{{#len:中文}}</nowiki></code> || {{#len:中文}} || 一个文字算作1
|-
| <code><nowiki>{{#len: a b }}</nowiki></code> || {{#len: a b }} || ab之间有3个空格,前后的空格不计算
|-
| <code><nowiki>{{#len:<nowiki></nowiki>This is a <nowiki></nowiki></nowiki>test}}</code> || {{#len:<nowiki>This is a </nowiki>test}} || nowiki标签之间的都为0
|-
| <code><nowiki>{{#len:&nbsp;}}</nowiki></code> || {{#len: }} || HTML字符这种直接计算,例子中为空格
|}
=== #pos ===
<code>#pos</code>函数返回给定搜索词在字符串中的位置。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#pos:string|搜索词|offset}}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#pos:I am good.|good}}</nowiki></code> || {{#pos:I am good.|good}} || 从0开始数,I是0
|-
| <code><nowiki>{{#pos:I am good.|good|6}}</nowiki></code> || {{#pos:I am good.|good|6}} || 没找到就返回空
|-
| <code><nowiki>{{#pos:I am good.|o}}</nowiki></code> || {{#pos:I am good.|o}} || 只返回一个
|-
| <code><nowiki>{{#pos:I am good.| o | 7}}</nowiki></code> || {{#pos:I am good.|o |7}} || 跳过第一个o
|}
=== #rpos ===
<code>#rpos</code>函数返回给定搜索词在字符串中的'''最后的'''位置。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#rpos:string|搜索词}}</nowiki>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#rpos:I am good.| o }}</nowiki></code> || {{#rpos:I am good.|o}} || 仅返回后面的一个o
|-
| <code><nowiki>{{#rpos:I am good.| z }}</nowiki></code> || {{#rpos:I am good.|z}} || 没找到返回-1
|}
=== #sub ===
<code>#sub</code>函数返回指定字符串中的子字符串(substring)。 <ref name="pF" />
{| class="wikitable"
|-
| 正向数 ||0 || 1 || 2 || 3 || 4 || 5 || 6 || 7 || 8 || 9
|-
| 负向数 || 10 || 9 || 8 || 7 || 6 || 5 || 4 || 3 || 2 || 1
|-
| 字符串 || I || || a || m || || g || o || o || d || .
|}
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#sub:string|start|length}}</nowiki><br>
* start:为正数以0开头,负数以1开头
* length:正数正向数length个,负数反向切掉(-length)个
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#sub:I am good.|2|2}}</nowiki></code> || {{#sub:I am good.|2|2}} || “am good.”,取2个字符
|-
| <code><nowiki>{{#sub:I am good.|4|-2}}</nowiki></code> || {{#sub:I am good.|4|-2}} || “ good.”,-2就是忽略掉“d.”,这里注意空格被删掉了
|-
| <code><nowiki>{{#sub:I am good.|5|-2}}</nowiki></code> || {{#sub:I am good.|5|-2}} || “good.”,-2就是忽略掉“d.”,跟上面一样
|-
| <code><nowiki>{{#sub:I am good.|-3|2 }}</nowiki></code> || {{#sub:I am good.|-3|2 }} || “od.”,2正向取od
|-
| <code><nowiki>{{#sub:I am good.|-3|-1 }}</nowiki></code> || {{#sub:I am good.|-3 |-1 }} || “od.”,-1忽略掉“.”,取od,结果同上
|-
| <code><nowiki>{{#sub:I am good.|5|-6 }}</nowiki></code> || {{#sub:I am good.|5|-6 }} || 超过返回空
|-
|<code><nowiki>{{#sub:</nowiki><nowiki><nowiki></nowiki>This is a <nowiki></nowiki><nowiki><nowiki>test|1}}</code></nowiki> || {{#sub:<nowiki>This is a </nowiki>test|1}} || <span style="color:red;">存疑</span>
|}
=== #count ===
<code>#count </code>函数返回指定子字符串在提供的文本中出现的次数。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#count:string|substring}}</nowiki><br>
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#count:I am good.|am}}</nowiki></code> || {{#count:I am good.|am}} ||
|-
| <code><nowiki>{{#count:I am good.|ama}}</nowiki></code> || {{#count:I am good.|ama}} ||
|}
=== #replace ===
<code>#replace</code>函数返回指定的字符串,并将所有搜索词出现的地方替换成替换词。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#replace:string|search term|replacement term}}</nowiki><br>
* 如果search term未指定或者为空,则搜索单个空格。
* 如果replacement term未指定或者为空,则所有search term都会从string中移除。
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#replace:I am good.|am | was}}</nowiki></code> || {{#replace:I am good.|am | was}} ||
|-
| <code><nowiki>{{#replace:I am good.|o|O }}</nowiki></code> || {{#replace:I am good.|o|O }} ||
|-
| <code><nowiki>{{#replace:I am good.||X }}</nowiki></code> || {{#replace:I am good.||X }} || 未指定要搜索的子串
|-
| <code><nowiki>{{#replace:I am good.|am| }}</nowiki></code> || {{#replace:I am good.|am| }} || 未指定要替换的内容
|}
=== #explode ===
<code>#explode</code>函数将指定的字符串分成多个片段,返回其中一段。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#explode:string|delimiter|position|limit}}</nowiki><br>
* position:从0开始
* limit一般不用
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#explode:I am good.| am | 1}}</nowiki></code> || {{#explode:I am good.| am | 1}} || 可以是多个字符
|-
| <code><nowiki>{{#explode:I am good.| am | 3}}</nowiki></code> || {{#explode:I am good.| am | 3}} || 超过了返回空
|-
| <code><nowiki>{{#explode:a/b/c/d |/|2 }}</nowiki></code> ||{{#explode:a/b/c/d |/|2 }} || 可以是单个字符
|-
| <code><nowiki>{{#explode:a/b/c/d |/|-1 }}</nowiki></code> ||{{#explode:a/b/c/d |/|-1 }} || 负数倒着取,从1开始
|-
| <code><nowiki>{{#explode:1oo234 |o|1 }}</nowiki></code> ||{{#explode:1oo234 |o|1 }} || 两个相邻的delimiter,则中间取空格0(1),1( ),2(234)
|-
| <code><nowiki>{{#explode:1oo234 |o|2}}</nowiki></code> ||{{#explode:1oo234 |o|2 }} || 两个相邻的delimiter,则中间取空格0(1),1( ),2(234)
|}
=== #urldecode ===
<code>#urldecode</code>函数将“[https://zh.wikipedia.org/wiki/%E7%99%BE%E5%88%86%E5%8F%B7%E7%BC%96%E7%A0%81 URL编码]”的转义字符转换回原来的可读字符。 <ref name="pF" />
{| class="wikitable" style="overflow:auto;"
|+ #len
|-
| colspan='3' | <nowiki>{{#urldecode:URL值}}</nowiki><br>
* position:从0开始
* limit一般不用
|-
! 示例 !! 输出结果 !! 备注
|-
| <code><nowiki>{{#urldecode:https://zh.wikipedia.org/wiki/%E7%99%BE%E5%88%86%E5%8F%B7%E7%BC%96%E7%A0%81}}</nowiki></code> || {{#urldecode:https://zh.wikipedia.org/wiki/%E7%99%BE%E5%88%86%E5%8F%B7%E7%BC%96%E7%A0%81}} || 转义
|}
== 参考 ==
<references />
[[分类:入门]]
933a3f2ee276c156d46cd509f591e198d2ed9640
文件:Mooncell logo.png
6
73
131
2022-11-07T13:48:13Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
文件:律工网 logo.png
6
75
133
2022-11-08T15:22:53Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:律工网
3000
76
134
2022-11-08T15:23:09Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=律工网_logo.png |网站名称=律工网 |网站网址=https://www.jus.org.cn/ |网站分类=律师 |使用软件=MediaWiki |网站性质=个人 |用户权限=3 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=律工网_logo.png
|网站名称=律工网
|网站网址=https://www.jus.org.cn/
|网站分类=律师
|使用软件=MediaWiki
|网站性质=个人
|用户权限=3
|内容许可=BY-NC-SA
}}
30d9cc5001eb99381d6916034a87a64e29d174ea
141
134
2022-11-08T16:25:07Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=律工网_logo.png
|中文名称=律工网
|网站网址=https://www.jus.org.cn/
|一级分类=法律
|二级分类=律师
|使用软件=MediaWiki
|网站性质=个人
|用户权限=3
|内容许可=BY-NC-SA
}}
23f3f675d016f83ff591c895167128335015cf88
MediaWiki:Common.css
8
77
135
2022-11-08T15:36:03Z
Istudylinux
1
创建页面,内容为“/* 这里放置的CSS将应用于所有皮肤 */ /* 响应式布局 */ @media (min-width:0px) and (max-width:768px){ .vcard{ width:100%; max-width:768; border-radius:10px; margin:5px auto; float:none; } } @media (min-width:768px) and (max-width:992px){ .vcard{ width:100%; max-width:992; border-radius:10px; margin:5px auto; float:none; } } @media (min-width:992px) {…”
css
text/css
/* 这里放置的CSS将应用于所有皮肤 */
/* 响应式布局 */
@media (min-width:0px) and (max-width:768px){
.vcard{
width:100%;
max-width:768;
border-radius:10px;
margin:5px auto;
float:none;
}
}
@media (min-width:768px) and (max-width:992px){
.vcard{
width:100%;
max-width:992;
border-radius:10px;
margin:5px auto;
float:none;
}
}
@media (min-width:992px) {
.vcard{
width:293px;
min-width:293px;
float:right;
border-radius:10px;
margin:1px auto;
margin-left:1em;
margin-right:1em;
}
}
760c6d34d6d60e9cb77582e5d62296b235bf8384
136
135
2022-11-08T15:41:31Z
Istudylinux
1
css
text/css
/* 这里放置的CSS将应用于所有皮肤 */
/* 响应式布局 */
@media (min-width:0px) and (max-width:768px){
.vcard{
width:100%;
max-width:768;
border: 1px solid #000;
border-radius:10px;
margin:5px auto;
float:none;
}
}
@media (min-width:768px) and (max-width:992px){
.vcard{
width:100%;
max-width:992;
border: 1px solid #000;
border-radius:10px;
margin:5px auto;
float:none;
}
}
@media (min-width:992px) {
.vcard{
width:293px;
min-width:293px;
float:right;
border: 1px solid #000;
border-radius:10px;
margin:1px auto;
margin-left:1em;
margin-right:1em;
}
}
c1d4f17feb3b52c01579576baca9576eaaacc3f9
模板:网站/doc
10
41
137
63
2022-11-08T16:18:10Z
Istudylinux
1
wikitext
text/x-wiki
== 使用方法 ==
<pre>{{Infobox_site
|网站Logo=
|中文名称=
|网站网址=
|一级分类=
|二级分类=
|三级分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}</pre>
{| class="wikitable"
|+ 网站信息模板参数说明
|-
! 名称 !! 填写值 !! 备注
|-
| 网站Logo || WIKI网站名称.png || 这个为135x135的WIKI网站左上角的图片,填写图片名称,命名通常是网站页面名称,A+医学百科.png。
|-
| 中文名称 || WIKI网站名称 || 这个和页面标题不一样,为了防止撞车
|-
| 英文名称 || 有就填,没有就不填 ||
|-
| 网站网址 || www.example.com<br/><nowiki>http://www.example.com</nowiki> || www.example.com(如果没有填写http,默认添加https)
|-
| 一级分类 || 随意,填写大概的分类 || 目前没有对网站进行分类
|-
| 二级分类 || 随意,填写一级分类的子分类 || 比如一级分类为游戏,二级分类可以为游戏名称
|-
| 使用软件 || MediaWiki<br>Confluence<br>DokuWiki || 更多其他WIKI软件参考[https://zh.wikipedia.org/wiki/Wiki%E8%BD%AF%E4%BB%B6%E6%AF%94%E8%BE%83 维基百科-WIKI软件比较]
|-
| 网站性质 || 0:个人搭建维护<br>1:企业维护<br>未知:默认值 || 1
|-
| 用户权限 || 0:开放wik<br>1:需要注册账号<br>2:仅限授权编者<br>3:私人wiki || 3
|-
| 内容许可 ||
{| class="wikitable"
! 填写值 !! 说明
|-
| 0 || 数字0,表示该网站未标注或者未知
|-
| CC0 || 不受限制地在全球范围内发布内容
|-
| BY || 署名(BY)
|-
| BY-SA || 署名(BY)-相同方式共享(SA)
|-
| BY-NC || 署名(BY)-非商业性使用(NC)
|-
| BY-NC-SA ||署名(BY)-非商业性使用(NC)-相同方式共享(SA)
|-
| BY-ND ||署名(BY)-禁止演绎(ND)
|-
| BY-NC-ND ||署名(BY)-非商业性使用(NC)-禁止演绎(ND)
|-
| GFDL || GNU自由文档许可证(GNU Free Documentation License)
|-
| PD || Public-Domain(PD)
|}
|| 更多详细的请参考[[版权和许可证]]
|}
b9ccd545614629a7faae8198988e6e27a9142517
138
137
2022-11-08T16:23:56Z
Istudylinux
1
wikitext
text/x-wiki
== 使用方法 ==
<pre>{{Infobox_site
|网站Logo=
|中文名称=
|网站网址=
|一级分类=
|二级分类=
|三级分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}</pre>
{| class="wikitable"
|+ 网站信息模板参数说明
|-
! 名称 !! 填写值 !! 备注
|-
| 网站Logo || WIKI网站名称.png || 这个为135x135的WIKI网站左上角的图片,填写图片名称,命名通常是网站页面名称,A+医学百科.png。
|-
| 中文名称 || WIKI网站名称 || 这个和页面标题不一样,为了防止撞车
|-
| 英文名称 || 有就填,没有就不填 ||
|-
| 网站网址 || www.example.com<br/><nowiki>http://www.example.com</nowiki> || www.example.com(如果没有填写http,默认添加https)
|-
| 一级分类 || 随意,填写大概的分类 || 目前没有对网站进行分类
|-
| 二级分类 || 随意,填写一级分类的子分类 || 比如一级分类为游戏,二级分类可以为游戏名称
|-
| 使用软件 || MediaWiki<br>Confluence<br>DokuWiki || 更多其他WIKI软件参考[https://zh.wikipedia.org/wiki/Wiki%E8%BD%AF%E4%BB%B6%E6%AF%94%E8%BE%83 维基百科-WIKI软件比较]
|-
| 网站性质 || 个人,企业,基金会,其他 || 基金会
|-
| 用户权限 || 0:开放wik<br>1:需要注册账号<br>2:仅限授权编者<br>3:私人wiki || 3
|-
| 内容许可 ||
{| class="wikitable"
! 填写值 !! 说明
|-
| 0 || 数字0,表示该网站未标注或者未知
|-
| CC0 || 不受限制地在全球范围内发布内容
|-
| BY || 署名(BY)
|-
| BY-SA || 署名(BY)-相同方式共享(SA)
|-
| BY-NC || 署名(BY)-非商业性使用(NC)
|-
| BY-NC-SA ||署名(BY)-非商业性使用(NC)-相同方式共享(SA)
|-
| BY-ND ||署名(BY)-禁止演绎(ND)
|-
| BY-NC-ND ||署名(BY)-非商业性使用(NC)-禁止演绎(ND)
|-
| GFDL || GNU自由文档许可证(GNU Free Documentation License)
|-
| PD || Public-Domain(PD)
|}
|| 更多详细的请参考[[版权和许可证]]
|}
0d932f99621c8fd57ded5781939620188c0379ff
142
138
2022-11-08T16:28:26Z
Istudylinux
1
/* 使用方法 */
wikitext
text/x-wiki
== 使用方法 ==
<pre>{{Infobox_site
|网站Logo=
|中文名称=
|英文名称=
|网站网址=
|一级分类=
|二级分类=
|三级分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}</pre>
{| class="wikitable"
|+ 网站信息模板参数说明
|-
! 名称 !! 填写值 !! 备注
|-
| 网站Logo || WIKI网站名称.png || 这个为135x135的WIKI网站左上角的图片,填写图片名称,命名通常是网站页面名称,A+医学百科.png。
|-
| 中文名称 || WIKI网站名称 || 这个和页面标题不一样,为了防止撞车
|-
| 英文名称 || 有就填,没有就不填 ||
|-
| 网站网址 || www.example.com<br/><nowiki>http://www.example.com</nowiki> || www.example.com(如果没有填写http,默认添加https)
|-
| 一级分类 || 随意,填写大概的分类 || 目前没有对网站进行分类
|-
| 二级分类 || 随意,填写一级分类的子分类 || 比如一级分类为游戏,二级分类可以为游戏名称
|-
| 使用软件 || MediaWiki<br>Confluence<br>DokuWiki || 更多其他WIKI软件参考[https://zh.wikipedia.org/wiki/Wiki%E8%BD%AF%E4%BB%B6%E6%AF%94%E8%BE%83 维基百科-WIKI软件比较]
|-
| 网站性质 || 个人,企业,基金会,其他 || 基金会
|-
| 用户权限 || 0:开放wik<br>1:需要注册账号<br>2:仅限授权编者<br>3:私人wiki || 3
|-
| 内容许可 ||
{| class="wikitable"
! 填写值 !! 说明
|-
| 0 || 数字0,表示该网站未标注或者未知
|-
| CC0 || 不受限制地在全球范围内发布内容
|-
| BY || 署名(BY)
|-
| BY-SA || 署名(BY)-相同方式共享(SA)
|-
| BY-NC || 署名(BY)-非商业性使用(NC)
|-
| BY-NC-SA ||署名(BY)-非商业性使用(NC)-相同方式共享(SA)
|-
| BY-ND ||署名(BY)-禁止演绎(ND)
|-
| BY-NC-ND ||署名(BY)-非商业性使用(NC)-禁止演绎(ND)
|-
| GFDL || GNU自由文档许可证(GNU Free Documentation License)
|-
| PD || Public-Domain(PD)
|}
|| 更多详细的请参考[[版权和许可证]]
|}
6c9a6671de2c2fd301f3c693754cf7a8bf2a735f
模板:Infobox site
10
45
139
94
2022-11-08T16:23:59Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle =
| abovestyle = background:#ff8000;border-radius:10px;
| above = 最上面的标题
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 网站名称
| data5 = {{{网站名称}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| header16 = [[模板:网站/doc|帮助]]
| labelstyle =
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}
</includeonly>
406a99baa9ff2002d18666081a461d63e1743ee3
140
139
2022-11-08T16:24:34Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle =
| abovestyle = background:#ff8000;border-radius:10px;
| above = 最上面的标题
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 中文名称
| data5 = {{{中文名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| header16 = [[模板:网站/doc|帮助]]
| labelstyle =
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}
</includeonly>
162811a5e5ee5420b5578f59a58588ab766bddb5
143
140
2022-11-08T16:29:22Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle =
| abovestyle = background:#ff8000;border-radius:10px;
| above = {{PAGENAME}}
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 中文名称
| data5 = {{{中文名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| header16 = [[模板:网站/doc|帮助]]
| labelstyle =
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}
</includeonly>
8c65c64a8962613e903761b715142018b230aa23
144
143
2022-11-08T16:30:32Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle =
| abovestyle = background:#ff8000;border-radius:10px;
| above = {{PAGENAME}}
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 中文名称
| data5 = {{{中文名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| header16 = [[模板:网站/doc|帮助]]
| labelstyle =
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}
</includeonly>
e571b5c71e7291aef9295ae0ab21f1f6049c37f6
154
144
2022-11-08T16:49:09Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|中文名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|中文名称={{{中文名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle =
| abovestyle = background:#ff8000;border-radius:10px;
| above = {{PAGENAME}}
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 中文名称
| data5 = {{{中文名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| header16 = [[模板:网站/doc|帮助]]
| labelstyle = width:30%
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}</includeonly>
c399ef1a389d291907073c7213e158b1709c2115
网站:BWIKI
3000
51
149
98
2022-11-08T16:41:42Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=BWIKI.png
|英文名称=BWIKI
|网站网址=https://wiki.biligame.com/
|一级分类=维基农场
|二级分类=游戏
|使用软件=MediaWiki
|网站性质=公司
|用户权限=0
|内容许可=
}}
43bc7d70f70ad33bcd18cb8acf71f0d7e05ec1d0
网站:Fandom
3000
54
150
101
2022-11-08T16:43:00Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Fandom.png
|英文名称=Fandom
|网站网址=https://www.fandom.com/
|一级分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=0
|内容许可=
}}
4151db38c0d104f24c5105aec4dccc8e1e5fedb4
网站:灰机wiki
3000
44
153
95
2022-11-08T16:45:13Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=灰机wiki.png
|中文名称=灰机wiki
|网站网址=https://www.huijiwiki.com/
|一级分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=
}}
8986828dae12893e80f9cb79c35580f381b88985
网站:中文音MAD维基
3000
57
155
113
2022-11-08T16:49:13Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Otomad.png
|中文名称=中文音MAD维基
|网站网址=https://otomad.wiki/
|一级分类=二次元亚文化
|使用软件=MediaWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC
}}
73f8c5ef016667f6651b8d263bcc64832ab18c93
163
155
2022-11-08T17:00:33Z
Maintenance script
5
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Otomad.png
|网站名称=中文音MAD维基
|网站网址=https://otomad.wiki/
|一级分类=二次元亚文化
|使用软件=MediaWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC
}}
3f01008f7331909246265167ab891deab7a87251
网站:国际乐谱库
3000
67
156
118
2022-11-08T16:49:30Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Imslp-new2.png
|中文名称=国际乐谱库
|英文名称=International Music Score Library Project or Petrucci Music Library(IMSLP)
|网站网址=https://imslp.org/
|一级分类=乐谱
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-SA
}}
[[文件:Chinese logo blue.png|缩略图|左|替代=国内网站的Logo|国内网站的Logo]]
62d57fc70fdc7b7419400af1ae3e74b1a8e2a045
165
156
2022-11-08T17:00:39Z
Maintenance script
5
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Imslp-new2.png
|网站名称=国际乐谱库
|英文名称=International Music Score Library Project or Petrucci Music Library(IMSLP)
|网站网址=https://imslp.org/
|一级分类=乐谱
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-SA
}}
[[文件:Chinese logo blue.png|缩略图|左|替代=国内网站的Logo|国内网站的Logo]]
2fc8f325ebb6e1f6eb48e0bf55f9937fe3de3a8d
网站:WikiHow
3000
53
157
121
2022-11-08T16:49:48Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=wikiHow.png
|英文名称=wikiHow
|网站网址=https://zh.wikihow.com/
|一级分类=综合
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-NC-SA
}}
915122a8e0bc2ec8b684998b452112e5b777df16
173
157
2022-11-08T17:03:15Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=wikiHow.png
|网站名称=wikiHow
|网站网址=https://zh.wikihow.com/
|一级分类=综合
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-NC-SA
}}
ad1e17e0ed4ce9aaa3f3407165b5b2c925757fbe
网站:THMwiki
3000
72
158
124
2022-11-08T16:50:20Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=THMwiki.png
|英文名称=THMwiki
|网站网址=https://wiki.thfmu.com/
|一级分类=医学
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-SA
}}
0fcb40b00af7f4741e0ef7e532ab5194db840088
171
158
2022-11-08T17:02:33Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=THMwiki.png
|网站名称=THMwiki
|网站网址=https://wiki.thfmu.com/
|一级分类=医学
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-SA
}}
9457a4ec4760910a89c6b052669a0997d6368ac4
模板:Infobox site
10
45
159
154
2022-11-08T16:53:28Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle =
| abovestyle = background:#ff8000;border-radius:10px;
| above = {{PAGENAME}}
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 网站名称
| data5 = {{{网站名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| header16 = [[模板:网站/doc|帮助]]
| labelstyle = width:30%
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}</includeonly>
20ab69bc56e061d628d07a05c87b90e0807d7c98
194
159
2022-11-14T07:34:19Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle =
| abovestyle = background:#ff8000;border-radius:10px;
| above = {{PAGENAME}}
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 网站名称
| data5 = {{{网站名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| label16 = 所属农场
| data16 = {{{所属农场|}}}
| header17 = [[模板:网站/doc|帮助]]
| labelstyle = width:30%
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}</includeonly>
056ce0ec6a662a41fa54d6caa0babfcbce0ce3c7
模板:网站/doc
10
41
160
142
2022-11-08T16:54:02Z
Istudylinux
1
wikitext
text/x-wiki
== 使用方法 ==
<pre>{{Infobox_site
|网站Logo=
|网站名称=
|英文名称=
|网站网址=
|一级分类=
|二级分类=
|三级分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}</pre>
{| class="wikitable"
|+ 网站信息模板参数说明
|-
! 名称 !! 填写值 !! 备注
|-
| 网站Logo || WIKI网站名称.png || 这个为135x135的WIKI网站左上角的图片,填写图片名称,命名通常是网站页面名称,A+医学百科.png。
|-
| 网站名称 || WIKI网站名称 || 这个和页面标题不一样,为了防止撞车,在没有英文的情况下,消除歧义
|-
| 英文名称 || 有就填,没有就不填 ||
|-
| 网站网址 || www.example.com<br/><nowiki>http://www.example.com</nowiki> || www.example.com(如果没有填写http,默认添加https)
|-
| 一级分类 || 随意,填写大概的分类 || 目前没有对网站进行分类
|-
| 二级分类 || 随意,填写一级分类的子分类 || 比如一级分类为游戏,二级分类可以为游戏名称
|-
| 使用软件 || MediaWiki<br>Confluence<br>DokuWiki || 更多其他WIKI软件参考[https://zh.wikipedia.org/wiki/Wiki%E8%BD%AF%E4%BB%B6%E6%AF%94%E8%BE%83 维基百科-WIKI软件比较]
|-
| 网站性质 || 个人,企业,基金会,其他 || 基金会
|-
| 用户权限 || 0:开放wik<br>1:需要注册账号<br>2:仅限授权编者<br>3:私人wiki || 3
|-
| 内容许可 ||
{| class="wikitable"
! 填写值 !! 说明
|-
| 0 || 数字0,表示该网站未标注或者未知
|-
| CC0 || 不受限制地在全球范围内发布内容
|-
| BY || 署名(BY)
|-
| BY-SA || 署名(BY)-相同方式共享(SA)
|-
| BY-NC || 署名(BY)-非商业性使用(NC)
|-
| BY-NC-SA ||署名(BY)-非商业性使用(NC)-相同方式共享(SA)
|-
| BY-ND ||署名(BY)-禁止演绎(ND)
|-
| BY-NC-ND ||署名(BY)-非商业性使用(NC)-禁止演绎(ND)
|-
| GFDL || GNU自由文档许可证(GNU Free Documentation License)
|-
| PD || Public-Domain(PD)
|}
|| 更多详细的请参考[[版权和许可证]]
|}
0e5f0805cb08a2680ada860cc5970dd2bb3711ff
195
160
2022-11-14T07:35:35Z
Istudylinux
1
/* 使用方法 */
wikitext
text/x-wiki
== 使用方法 ==
<pre>{{Infobox_site
|网站Logo=
|网站名称=
|英文名称=
|网站网址=
|一级分类=
|二级分类=
|三级分类=
|使用软件=
|网站性质=
|用户权限=
|内容许可=
|所属农场=
}}</pre>
{| class="wikitable"
|+ 网站信息模板参数说明
|-
! 名称 !! 填写值 !! 备注
|-
| 网站Logo || WIKI网站名称.png || 这个为135x135的WIKI网站左上角的图片,填写图片名称,命名通常是网站页面名称,A+医学百科.png。
|-
| 网站名称 || WIKI网站名称 || 这个和页面标题不一样,为了防止撞车,在没有英文的情况下,消除歧义
|-
| 英文名称 || 有就填,没有就不填 ||
|-
| 网站网址 || www.example.com<br/><nowiki>http://www.example.com</nowiki> || www.example.com(如果没有填写http,默认添加https)
|-
| 一级分类 || 随意,填写大概的分类 || 目前没有对网站进行分类
|-
| 二级分类 || 随意,填写一级分类的子分类 || 比如一级分类为游戏,二级分类可以为游戏名称
|-
| 使用软件 || MediaWiki<br>Confluence<br>DokuWiki || 更多其他WIKI软件参考[https://zh.wikipedia.org/wiki/Wiki%E8%BD%AF%E4%BB%B6%E6%AF%94%E8%BE%83 维基百科-WIKI软件比较]
|-
| 网站性质 || 个人,企业,基金会,其他 || 基金会
|-
| 用户权限 || 0:开放wik<br>1:需要注册账号<br>2:仅限授权编者<br>3:私人wiki || 3
|-
| 内容许可 ||
{| class="wikitable"
! 填写值 !! 说明
|-
| 0 || 数字0,表示该网站未标注或者未知
|-
| CC0 || 不受限制地在全球范围内发布内容
|-
| BY || 署名(BY)
|-
| BY-SA || 署名(BY)-相同方式共享(SA)
|-
| BY-NC || 署名(BY)-非商业性使用(NC)
|-
| BY-NC-SA ||署名(BY)-非商业性使用(NC)-相同方式共享(SA)
|-
| BY-ND ||署名(BY)-禁止演绎(ND)
|-
| BY-NC-ND ||署名(BY)-非商业性使用(NC)-禁止演绎(ND)
|-
| GFDL || GNU自由文档许可证(GNU Free Documentation License)
|-
| PD || Public-Domain(PD)
|}
|| 更多详细的请参考[[版权和许可证]]
|-
| 所属农场 || 灰机wiki,BWIKI,Fandom,wikia || 该wiki挂靠在哪,没有则不写
|}
46f5e2848d6f02caeb759b1aca77fd29196fc426
网站:A+医学百科
3000
42
161
147
2022-11-08T17:00:26Z
Maintenance script
5
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=A+医学百科.png
|网站名称=A+医学百科
|网站网址=http://www.a-hospital.com
|一级分类=医学
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-SA
}}
418287f2a2fe01337ad3f3899255a73dddcf9afb
网站:灰机wiki
3000
44
162
153
2022-11-08T17:00:28Z
Maintenance script
5
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=灰机wiki.png
|网站名称=灰机wiki
|网站网址=https://www.huijiwiki.com/
|一级分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=
}}
243aa908500b5f3a4040b85f42fad5504434b62b
网站:萌娘百科
3000
62
164
152
2022-11-08T17:00:36Z
Maintenance script
5
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Moegirlpedia-logo.png
|网站名称=萌娘百科
|网站网址=https://zh.moegirl.org.cn/
|一级分类=泛ACGN
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-NC-SA
}}
2c6852df37f423c5827c5218be007af140d30d87
网站:律工网
3000
76
166
141
2022-11-08T17:00:44Z
Maintenance script
5
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=律工网_logo.png
|网站名称=律工网
|网站网址=https://www.jus.org.cn/
|一级分类=法律
|二级分类=律师
|使用软件=MediaWiki
|网站性质=个人
|用户权限=3
|内容许可=BY-NC-SA
}}
4a17c0ae5dc1950afe885953c37574d7bc33f67f
网站
0
70
167
145
2022-11-08T17:01:37Z
Istudylinux
1
wikitext
text/x-wiki
{{#cargo_query:
tables=site
|fields=_pageName=页面,网站名称,英文名称,网站网址,一级分类,二级分类,使用软件
|where=
|order by=_pageName
|default=
|format=table
}}
980893968b843abb31b57e2bd573c17e17d23259
174
167
2022-11-08T17:08:06Z
Istudylinux
1
wikitext
text/x-wiki
{{#cargo_query:
tables=site
|fields=_pageName=页面,网站名称,网站网址,一级分类,二级分类,使用软件,英文名称
|where=
|order by=_pageName
|default=
|format=table
}}
1dc7620075532c2593241a8076bc97a55ee985bd
网站:ACwiki
3000
60
168
146
2022-11-08T17:02:15Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=ACwiki.png
|网站名称=ACwiki
|网站网址=https://acwiki.xyz/
|一级分类=二次元亚文化
|使用软件=DokuWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC-SA
}}
26cb6d4db0ec185e965e5eb740e523c7915e162b
网站:Miraheze
3000
64
169
151
2022-11-08T17:02:22Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Miraheze.svg
|网站名称=Miraheze
|网站网址=https://miraheze.org/
|一级分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-SA
}}
d43bc36d17b52a00ea7831662fb7a7d73f1e40b3
网站:BWIKI
3000
51
170
149
2022-11-08T17:02:25Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=BWIKI.png
|网站名称=BWIKI
|网站网址=https://wiki.biligame.com/
|一级分类=维基农场
|二级分类=游戏
|使用软件=MediaWiki
|网站性质=公司
|用户权限=0
|内容许可=
}}
52b22e66e4f756377dbf9f74c5051962f4dee8b8
网站:Fandom
3000
54
172
150
2022-11-08T17:02:34Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=Fandom.png
|网站名称=Fandom
|网站网址=https://www.fandom.com/
|一级分类=维基农场
|使用软件=MediaWiki
|网站性质=公司
|用户权限=0
|内容许可=
}}
007a1cef0d1e4da0543e6d8f7845795e3812faee
文件:戏曲百科 logo.png
6
78
175
2022-11-09T05:55:25Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:戏曲百科
3000
79
176
2022-11-09T05:55:46Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=戏曲百科_logo.png |网站名称=戏曲百科 |网站网址=https://wiki66.com/%E9%A6%96%E9%A1%B5 |一级分类=戏曲 |二级分类= |使用软件=MediaWiki |网站性质=个人 |用户权限=2 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=戏曲百科_logo.png
|网站名称=戏曲百科
|网站网址=https://wiki66.com/%E9%A6%96%E9%A1%B5
|一级分类=戏曲
|二级分类=
|使用软件=MediaWiki
|网站性质=个人
|用户权限=2
|内容许可=BY-NC-SA
}}
cfcc6bc421f0aaaa9b4d6157487f0082764b7697
文件:异世界百科 logo.png
6
80
177
2022-11-09T06:00:42Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:异世界百科
3000
81
178
2022-11-09T06:01:47Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=异世界百科_logo.png |网站名称=异世界百科 |网站网址=https://www.isekai.cn/ |一级分类=小说 |二级分类= |使用软件=MediaWiki |网站性质=个人 |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=异世界百科_logo.png
|网站名称=异世界百科
|网站网址=https://www.isekai.cn/
|一级分类=小说
|二级分类=
|使用软件=MediaWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC-SA
}}
bee1b18e2532a1a145242ca032fa31822e7c9fbb
文件:金属百科 logo.gif
6
82
179
2022-11-09T11:06:25Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:金属百科
3000
83
180
2022-11-09T11:08:39Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=金属百科_logo.gif |网站名称=金属百科 |网站网址=http://baike.asianmetal.cn/ |一级分类=金属 |使用软件= |网站性质=公司 |用户权限=1 |内容许可= }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=金属百科_logo.gif
|网站名称=金属百科
|网站网址=http://baike.asianmetal.cn/
|一级分类=金属
|使用软件=
|网站性质=公司
|用户权限=1
|内容许可=
}}
92f14e5742e3a00fad3231bf057d2c20be8a3d63
文件:集智百科 logo.png
6
84
181
2022-11-09T11:27:01Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:集智百科
3000
85
182
2022-11-09T11:27:12Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=集智百科_logo.png |网站名称=集智百科 |网站网址=https://wiki.swarma.org/ |一级分类=复杂性科学 |使用软件=MediaWiki |网站性质= |用户权限=2 |内容许可=BY-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=集智百科_logo.png
|网站名称=集智百科
|网站网址=https://wiki.swarma.org/
|一级分类=复杂性科学
|使用软件=MediaWiki
|网站性质=
|用户权限=2
|内容许可=BY-SA
}}
dee4646f6b0e58c0f64d6a7f17f2cc1d6b02da6e
文件:火器百科 logo.png
6
86
183
2022-11-12T07:02:53Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:火器百科
3000
87
184
2022-11-12T07:03:17Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=火器百科_logo.png |网站名称=火器百科 |网站网址=https://huoqibaike.club/wiki/%E9%A6%96%E9%A1%B5 |一级分类=兵器 |使用软件=MediaWiki |网站性质= |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=火器百科_logo.png
|网站名称=火器百科
|网站网址=https://huoqibaike.club/wiki/%E9%A6%96%E9%A1%B5
|一级分类=兵器
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
}}
9b7d64891e7d318651e621697f77a94e36e838cf
文件:战舰少女R logo.png
6
88
185
2022-11-13T16:02:25Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:战舰少女R
3000
89
186
2022-11-13T16:02:46Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=战舰少女R_logo.png |网站名称=战舰少女R |网站网址=https://www.zjsnrwiki.com/wiki/%E9%A6%96%E9%A1%B5 |一级分类=游戏 |二级分类=战舰少女R |使用软件=MediaWiki |网站性质= |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=战舰少女R_logo.png
|网站名称=战舰少女R
|网站网址=https://www.zjsnrwiki.com/wiki/%E9%A6%96%E9%A1%B5
|一级分类=游戏
|二级分类=战舰少女R
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
}}
b4675504ded34a54c27ad72ba60c1f4b92e5f930
模板:首页
10
13
187
130
2022-11-13T16:13:12Z
Istudylinux
1
wikitext
text/x-wiki
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
{{#dpl:
|category=入门
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>MW官网入门</span></h3>
<div id="mainpage-users" title="MW官网入门" class="items">
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings MediaWiki配置设置列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ/zh-hans MediaWiki常见问题]
* [https://lists.wikimedia.org/postorius/lists/mediawiki-announce.lists.wikimedia.org/ MediaWiki发布邮件列表]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Localisation#Translation_resources 本地化MediaWiki到您的语言]
* [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Combating_spam 了解如何在您的wiki上打击破坏]
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>仓库</span></h3>
<div id="mainpage-devs" title="仓库" class="items">
{{#dpl:
|category=仓库
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
{{#dpl:
|category=维基农场
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
最近添加:
{{#dpl:
|category=网站
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
<span class="plainlinks">[[网站|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
</div>
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>相关规则</span></h3>
<div id="mainpage-news" title="相关规则" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
网站规则:
[[Istudylinux:关于]]
{{#dpl:
|category=规则
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
d08675238265c0e2f21001d4e9bd6e44393c418f
Istudylinux:关于
4
90
188
2022-11-13T16:20:26Z
Istudylinux
1
创建页面,内容为“关于本网站,主要做以下几个事情: * 收录互联网上的wiki类网站,包括不限于仅使用Mediawiki框架的网站,比如其他的dokuwiki。其他wiki软件参见[https://zh.wikipedia.org/wiki/Wiki%E8%BB%9F%E9%AB%94 维基软件列表] * 出具相对于的模板,前端代码,后端代码,一般是可移植到任意的Mediawiki版本 * 收集使用者在使用Mediawiki的问题”
wikitext
text/x-wiki
关于本网站,主要做以下几个事情:
* 收录互联网上的wiki类网站,包括不限于仅使用Mediawiki框架的网站,比如其他的dokuwiki。其他wiki软件参见[https://zh.wikipedia.org/wiki/Wiki%E8%BB%9F%E9%AB%94 维基软件列表]
* 出具相对于的模板,前端代码,后端代码,一般是可移植到任意的Mediawiki版本
* 收集使用者在使用Mediawiki的问题
93ffb9162b0bea3ca28158456f5a99002d633751
189
188
2022-11-13T16:21:33Z
Istudylinux
1
wikitext
text/x-wiki
关于本网站,主要做以下几个事情:
* 收录互联网上的wiki类网站,包括不限于仅使用Mediawiki框架的网站,比如其他的dokuwiki。其他wiki软件参见[https://zh.wikipedia.org/wiki/Wiki%E8%BB%9F%E9%AB%94 维基软件列表]
* 出具相对于的模板,前端代码,后端代码,一般是可移植到任意的Mediawiki版本,比如[[前端:页面快速置顶置底]]里面的内容,可以被复制到其他wiki网站使用
* 收集使用者在使用Mediawiki的问题
44845be136bd32fca220232767a96f7838c18788
网站收录
0
91
190
2022-11-13T16:47:33Z
Istudylinux
1
创建页面,内容为“如无特殊说明,'''本网站'''皆指当前域名为mw.istudylinux.cn的Mediawiki网站。 == 网站页面命名 == 在对网站收录时,通常是针对该网站出具的名称,直接在本站上面建立对应的文章条目,通常,只要是收录网站,前面都必须使用命名空间<code>网站</code>,比如<code>网站:某某百科</code>,比如[[网站:金属百科]]条目 这里可能会有以下几种情况: # 与本网站的条…”
wikitext
text/x-wiki
如无特殊说明,'''本网站'''皆指当前域名为mw.istudylinux.cn的Mediawiki网站。
== 网站页面命名 ==
在对网站收录时,通常是针对该网站出具的名称,直接在本站上面建立对应的文章条目,通常,只要是收录网站,前面都必须使用命名空间<code>网站</code>,比如<code>网站:某某百科</code>,比如[[网站:金属百科]]条目
这里可能会有以下几种情况:
# 与本网站的条目名称重复
# 要收录的网站名称不清楚
=== 重名 ===
第1种情况通常出现为游戏wiki,一般游戏受众范围广,所以大到公司,组织,小到个人都极有可能因为热爱而单独为其创建对应的wiki战点,会导致互联网上有多个同一款游戏的wiki
解决方案:在游戏名称后面跟上对应的标志,使用下划线隔开“_”。
比如现在有游戏'''王者荣耀''',假设有以下几种情况:
{| class="wikitable"
|-
! 页面标题 !! 备注
|-
| 网站:王者荣耀 || 有多个后,这个页面用于归纳总结所有关于王者荣耀游戏的wiki条目页面
|-
| 网站:王者荣耀_BWIKI || 说明该网站是建立在BWIKI的维基农场里面
|-
| 网站:王者荣耀_灰机wiki || 说明该网站是建立在BWIKI的维基农场里面
|-
| 网站:王者荣耀_istudylinux || 说明该网站是个人或者其他公司建立,且域名是istudylinux
|}
=== 名称不清楚 ===
针对第2种情况,主要原因可能受限于知识局限性,或者要收录的网站写的也不太清楚,这时可以询问网站建立者或者反馈给大家一起讨论。
最好是询问网站交流群。如果暂时获取不到对应的信息,可先搁置对该网站的收录。
== 内容说明 ==
收录完成网站后,需要介绍该网站的一个基本信息,这里需要在该网站页面上建立对应的内容。使用以下的模板填写网站对应的信息。
* [[模板:infobox_site]]
相关的内容格式,填写要求也参加该模板页面的帮助文档。
[[分类:规则]]
e4f4333e7540b845e1b43fbaeac253356542a719
191
190
2022-11-14T06:40:02Z
Istudylinux
1
/* 重名 */
wikitext
text/x-wiki
如无特殊说明,'''本网站'''皆指当前域名为mw.istudylinux.cn的Mediawiki网站。
== 网站页面命名 ==
在对网站收录时,通常是针对该网站出具的名称,直接在本站上面建立对应的文章条目,通常,只要是收录网站,前面都必须使用命名空间<code>网站</code>,比如<code>网站:某某百科</code>,比如[[网站:金属百科]]条目
这里可能会有以下几种情况:
# 与本网站的条目名称重复
# 要收录的网站名称不清楚
=== 重名 ===
第1种情况通常出现为游戏wiki,一般游戏受众范围广,所以大到公司,组织,小到个人都极有可能因为热爱而单独为其创建对应的wiki战点,会导致互联网上有多个同一款游戏的wiki
解决方案:在游戏名称后面跟上对应的标志,使用下划线隔开“_”。
比如现在有游戏'''王者荣耀''',假设有以下几种情况:
{| class="wikitable"
|-
! 页面标题 !! 备注
|-
| 网站:王者荣耀 || 有多个后,这个页面用于归纳总结所有关于王者荣耀游戏的wiki条目页面
|-
| 网站:王者荣耀_BWIKI || 说明该网站是建立在BWIKI的维基农场里面
|-
| 网站:王者荣耀_灰机wiki || 说明该网站是建立在灰机wiki的维基农场里面
|-
| 网站:王者荣耀_istudylinux || 说明该网站是个人或者其他公司建立,且域名是istudylinux
|}
=== 名称不清楚 ===
针对第2种情况,主要原因可能受限于知识局限性,或者要收录的网站写的也不太清楚,这时可以询问网站建立者或者反馈给大家一起讨论。
最好是询问网站交流群。如果暂时获取不到对应的信息,可先搁置对该网站的收录。
== 内容说明 ==
收录完成网站后,需要介绍该网站的一个基本信息,这里需要在该网站页面上建立对应的内容。使用以下的模板填写网站对应的信息。
* [[模板:infobox_site]]
相关的内容格式,填写要求也参加该模板页面的帮助文档。
[[分类:规则]]
db108a0ad15eb42424bfdffba7934aebcb0337b2
202
191
2022-11-14T07:58:21Z
Istudylinux
1
wikitext
text/x-wiki
如无特殊说明,'''本网站'''皆指当前域名为mw.istudylinux.cn的Mediawiki网站。
== 网站页面命名 ==
在对网站收录时,通常是针对该网站出具的名称,直接在本站上面建立对应的文章条目,通常,只要是收录网站,前面都必须使用命名空间<code>网站</code>,比如<code>网站:某某百科</code>,比如[[网站:金属百科]]条目
这里可能会有以下几种情况:
# 与本网站的条目名称重复
# 要收录的网站名称不清楚
=== 重名 ===
第1种情况通常出现为游戏wiki,一般游戏受众范围广,所以大到公司,组织,小到个人都极有可能因为热爱而单独为其创建对应的wiki战点,会导致互联网上有多个同一款游戏的wiki
解决方案:在游戏名称后面跟上对应的标志,使用“-”隔开。
比如现在有游戏'''王者荣耀''',假设有以下几种情况:
{| class="wikitable"
|-
! 页面标题 !! 备注
|-
| 网站:王者荣耀 || 有多个后,这个页面用于归纳总结所有关于王者荣耀游戏的wiki条目页面
|-
| 网站:王者荣耀-BWIKI || 说明该网站是建立在BWIKI的维基农场里面
|-
| 网站:王者荣耀-灰机wiki || 说明该网站是建立在灰机wiki的维基农场里面
|-
| 网站:王者荣耀-istudylinux || 说明该网站是个人或者其他公司建立,且域名是istudylinux
|}
=== 名称不清楚 ===
针对第2种情况,主要原因可能受限于知识局限性,或者要收录的网站写的也不太清楚,这时可以询问网站建立者或者反馈给大家一起讨论。
最好是询问网站交流群。如果暂时获取不到对应的信息,可先搁置对该网站的收录。
== 内容说明 ==
收录完成网站后,需要介绍该网站的一个基本信息,这里需要在该网站页面上建立对应的内容。使用以下的模板填写网站对应的信息。
* [[模板:infobox_site]]
相关的内容格式,填写要求也参加该模板页面的帮助文档。
[[分类:规则]]
43a6e67f3330d4e996bb7cdf7c6959fa656a134b
文件:游戏百科 logo.png
6
92
192
2022-11-14T07:29:08Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:游戏百科
3000
93
193
2022-11-14T07:29:27Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=游戏百科_logo.png |网站名称=游戏百科 |网站网址=https://wiki.emuzone.net/index.php/%E9%A6%96%E9%A1%B5 |一级分类=游戏 |使用软件=MediaWiki |网站性质= |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=游戏百科_logo.png
|网站名称=游戏百科
|网站网址=https://wiki.emuzone.net/index.php/%E9%A6%96%E9%A1%B5
|一级分类=游戏
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
}}
1b89602c5de28e17651b502c54e88094eb7333a7
文件:我的世界 fandom logo.png
6
94
196
2022-11-14T07:41:06Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:我的世界/Fandom
3000
95
197
2022-11-14T07:44:00Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=我的世界_fandom_logo.png |网站名称=Minecraft Wiki |网站网址=https://minecraft.fandom.com |一级分类=游戏 |二级分类=我的世界 |使用软件=MediaWiki |网站性质= |用户权限=1 |内容许可=BY-NC-SA |所属农场=Fandom }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_fandom_logo.png
|网站名称=Minecraft Wiki
|网站网址=https://minecraft.fandom.com
|一级分类=游戏
|二级分类=我的世界
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
|所属农场=Fandom
}}
6e6e5269c3797d916567bd280ceb2f920bd05efc
201
197
2022-11-14T07:57:14Z
Istudylinux
1
Istudylinux移动页面[[网站:我的世界 Fandom]]至[[网站:我的世界-Fandom]],不留重定向
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_fandom_logo.png
|网站名称=Minecraft Wiki
|网站网址=https://minecraft.fandom.com
|一级分类=游戏
|二级分类=我的世界
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
|所属农场=Fandom
}}
6e6e5269c3797d916567bd280ceb2f920bd05efc
203
201
2022-11-14T07:59:03Z
Istudylinux
1
Istudylinux移动页面[[网站:我的世界-Fandom]]至[[网站:我的世界/Fandom]],不留重定向
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_fandom_logo.png
|网站名称=Minecraft Wiki
|网站网址=https://minecraft.fandom.com
|一级分类=游戏
|二级分类=我的世界
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
|所属农场=Fandom
}}
6e6e5269c3797d916567bd280ceb2f920bd05efc
网站:我的世界/网易
3000
96
198
2022-11-14T07:55:59Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=我的世界_网易_logo.png |网站名称=我的世界 |网站网址=http://mc.163.com/wikigrab/ |一级分类=游戏 |二级分类=我的世界 |使用软件= |网站性质= |用户权限=1 |内容许可=BY-NC-SA |所属农场= }} '''该网易站的数据来源于[[网站:我的世界-Fandom]]'''。”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_网易_logo.png
|网站名称=我的世界
|网站网址=http://mc.163.com/wikigrab/
|一级分类=游戏
|二级分类=我的世界
|使用软件=
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
|所属农场=
}}
'''该网易站的数据来源于[[网站:我的世界-Fandom]]'''。
dc21ed612c6fc20ac1a83636d753ce54a24631d1
199
198
2022-11-14T07:56:36Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_网易_logo.png
|网站名称=我的世界
|网站网址=http://mc.163.com/wikigrab/
|一级分类=游戏
|二级分类=我的世界
|使用软件=
|网站性质=
|用户权限=
|内容许可=BY-NC-SA
|所属农场=
}}
'''该网易站的数据来源于[[网站:我的世界-Fandom]]'''。
84b8589aaca95c284d395f048fc55c091990c475
200
199
2022-11-14T07:56:55Z
Istudylinux
1
Istudylinux移动页面[[网站:我的世界 网易]]至[[网站:我的世界-网易]],不留重定向
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_网易_logo.png
|网站名称=我的世界
|网站网址=http://mc.163.com/wikigrab/
|一级分类=游戏
|二级分类=我的世界
|使用软件=
|网站性质=
|用户权限=
|内容许可=BY-NC-SA
|所属农场=
}}
'''该网易站的数据来源于[[网站:我的世界-Fandom]]'''。
84b8589aaca95c284d395f048fc55c091990c475
网站:我的世界
3000
97
204
2022-11-14T08:01:19Z
Istudylinux
1
创建页面,内容为“{{Special:PrefixIndex/网站:我的世界/}}”
wikitext
text/x-wiki
{{Special:PrefixIndex/网站:我的世界/}}
aa6eb2ab4278d8f95354108979dee0192ae27b01
网站收录
0
91
205
202
2022-11-14T08:01:50Z
Istudylinux
1
wikitext
text/x-wiki
如无特殊说明,'''本网站'''皆指当前域名为mw.istudylinux.cn的Mediawiki网站。
== 网站页面命名 ==
在对网站收录时,通常是针对该网站出具的名称,直接在本站上面建立对应的文章条目,通常,只要是收录网站,前面都必须使用命名空间<code>网站</code>,比如<code>网站:某某百科</code>,比如[[网站:金属百科]]条目
这里可能会有以下几种情况:
# 与本网站的条目名称重复
# 要收录的网站名称不清楚
=== 重名 ===
第1种情况通常出现为游戏wiki,一般游戏受众范围广,所以大到公司,组织,小到个人都极有可能因为热爱而单独为其创建对应的wiki战点,会导致互联网上有多个同一款游戏的wiki
解决方案:在游戏名称后面跟上对应的标志,使用“-”隔开。
比如现在有游戏'''王者荣耀''',假设有以下几种情况:
{| class="wikitable"
|-
! 页面标题 !! 备注
|-
| 网站:王者荣耀 || 有多个后,这个页面用于归纳总结所有关于王者荣耀游戏的wiki条目页面
|-
| 网站:王者荣耀/BWIKI || 说明该网站是建立在BWIKI的维基农场里面
|-
| 网站:王者荣耀/灰机wiki || 说明该网站是建立在灰机wiki的维基农场里面
|-
| 网站:王者荣耀/istudylinux || 说明该网站是个人或者其他公司建立,且域名是istudylinux
|}
=== 名称不清楚 ===
针对第2种情况,主要原因可能受限于知识局限性,或者要收录的网站写的也不太清楚,这时可以询问网站建立者或者反馈给大家一起讨论。
最好是询问网站交流群。如果暂时获取不到对应的信息,可先搁置对该网站的收录。
== 内容说明 ==
收录完成网站后,需要介绍该网站的一个基本信息,这里需要在该网站页面上建立对应的内容。使用以下的模板填写网站对应的信息。
* [[模板:infobox_site]]
相关的内容格式,填写要求也参加该模板页面的帮助文档。
[[分类:规则]]
a9693a33adaee882387ea787fd128ed320afef5f
网站:我的世界/网易
3000
96
206
200
2022-11-14T08:02:13Z
Istudylinux
1
Istudylinux移动页面[[网站:我的世界-网易]]至[[网站:我的世界/网易]],不留重定向
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_网易_logo.png
|网站名称=我的世界
|网站网址=http://mc.163.com/wikigrab/
|一级分类=游戏
|二级分类=我的世界
|使用软件=
|网站性质=
|用户权限=
|内容许可=BY-NC-SA
|所属农场=
}}
'''该网易站的数据来源于[[网站:我的世界-Fandom]]'''。
84b8589aaca95c284d395f048fc55c091990c475
207
206
2022-11-14T08:03:01Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_网易_logo.png
|网站名称=我的世界
|网站网址=http://mc.163.com/wikigrab/
|一级分类=游戏
|二级分类=我的世界
|使用软件=
|网站性质=
|用户权限=
|内容许可=BY-NC-SA
|所属农场=
}}
'''该网易站的数据来源于[[网站:我的世界/Fandom]]的中文版面'''。
b8fa43f6df151ac9794bb84329b9b42a1d218bd5
212
207
2022-11-14T08:10:15Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_网易_logo.webp
|网站名称=我的世界
|网站网址=http://mc.163.com/wikigrab/
|一级分类=游戏
|二级分类=我的世界
|使用软件=
|网站性质=
|用户权限=
|内容许可=BY-NC-SA
|所属农场=
}}
'''该网易站的数据来源于[[网站:我的世界/Fandom]]的中文版面'''。
671184cdf6a01e001af098ea0c03ff5f7c4ac42f
文件:我的世界 mcmod logo.png
6
98
208
2022-11-14T08:07:02Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:我的世界/mcmod
3000
99
209
2022-11-14T08:07:11Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=我的世界_mcmod_logo.png |网站名称=MC百科 |网站网址=https://www.mcmod.cn/ |一级分类=游戏 |二级分类=我的世界 |使用软件= |网站性质= |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_mcmod_logo.png
|网站名称=MC百科
|网站网址=https://www.mcmod.cn/
|一级分类=游戏
|二级分类=我的世界
|使用软件=
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
}}
e1d2ced4154c0eba38e62d6d81504d8f2dbd1f7b
网站:我的世界
3000
97
210
204
2022-11-14T08:08:43Z
Istudylinux
1
wikitext
text/x-wiki
{{Special:PrefixIndex/网站:我的世界/|stripprefix=1}}
ab6d14cf9aaf3797d2df44e5b9a574a7e7276a66
文件:我的世界 网易 logo.webp
6
100
211
2022-11-14T08:09:56Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
模板:Infobox site
10
45
213
194
2022-11-14T08:13:24Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle = background:#eaecff;
| abovestyle = background:#ff8000;border-radius:10px;
| above = {{PAGENAME}}
| imagestyle =
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 网站名称
| data5 = {{{网站名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GPDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| label16 = 所属农场
| data16 = {{{所属农场|}}}
| header17 = [[模板:网站/doc|帮助]]
| labelstyle = width:30%
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}</includeonly>
b4614a25db2875a9ea8d9df97ee48b7c9d823660
223
213
2022-11-14T09:41:06Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle = background:#eaecff;
| abovestyle = background:#ff8000;border-radius:10px;
| above = {{PAGENAME}}
| imagestyle =
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 网站名称
| data5 = {{{网站名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GFDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| label16 = 所属农场
| data16 = {{{所属农场|}}}
| header17 = [[模板:网站/doc|帮助]]
| labelstyle = width:30%
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}</includeonly>
36b0e8e938fbebda62ecf9eb3e1c26e5f1177f5d
248
223
2022-11-20T05:38:41Z
Istudylinux
1
wikitext
text/x-wiki
<noinclude>
{{模板:网站/doc}}
{{#cargo_declare:_table=site|网站Logo=String|网站名称=String|英文名称=String|网站网址=String|一级分类=String|二级分类=String|三级分类=String|使用软件=String|网站性质=String (allowed values=个人,企业,群体,未知)|用户权限=String (allowed values=0,1,2,3)|内容许可=String}}
</noinclude><includeonly>{{#cargo_store:_table=site|网站Logo={{{网站Logo|}}}|网站名称={{{网站名称|}}}|英文名称={{{英文名称|}}}|网站网址={{{网站网址|}}}|一级分类={{{一级分类|}}}|二级分类={{{二级分类|}}}|三级分类={{{三级分类|}}}|使用软件={{{使用软件|}}}|网站性质={{{网站性质|}}}|用户权限={{{用户权限|}}}|内容许可={{{内容许可|}}} }}
<b>{{PAGENAME}}</b> 是一个<b>{{{一级分类}}}</b>类的网站。{{infobox
| name =
| bodyclass = vcard
| bodystyle = background:#f5dc9f;
| abovestyle = background:#ff8000;border-radius:10px;
| above = {{PAGENAME}}
| imagestyle =
| image = [[file:{{{网站Logo}}}|135px]]
| caption = 网站Logo
| headerstyle = background:#ff8000;border-radius:10px;
| header1 = 基本信息
| label5 = 网站名称
| data5 = {{{网站名称|}}}
| label6 = 英文名称
| data6 = {{{英文名称|}}}
| label7 = 网站网址
| data7 = {{#urldecode:{{{网站网址}}}}}
| label8 = 一级分类
| data8 = {{{一级分类}}}
| label9 = 二级分类
| data9 = {{{二级分类|}}}
| label10 = 三级分类
| data10 = {{{三级分类|}}}
| label12 = 网站性质[[File:Icon-help-20.png|link=模板:网站/doc|个人;公司;基金会;其他]]
| data12 = {{{网站性质}}}
| header13 =
| label13 = 使用软件[[File:Icon-help-20.png|link=模板:网站/doc|MediaWiki,DokuWiki,Confluence]]
| data13 = {{{使用软件}}}
| header14 =
| label14 = 用户权限[[File:Icon-help-20.png|link=模板:网站/doc|0 开放wiki,1 需要注册账号,2 仅限授权编者,3 私人wiki]]
| data14 = {{网站/用户权限|{{{用户权限}}}}}
| label15 = 内容许可[[File:Icon-help-20.png|link=模板:网站/doc|CC0,BY,BY-SA,BY-NC,BY-NC-SA,BY-ND,BY-NC-ND,PD,GFDL]]
| data15 = {{网站/内容许可|{{{内容许可}}}}}
| label16 = 所属农场
| data16 = {{{所属农场|}}}
| header17 = [[模板:网站/doc|帮助]]
| labelstyle = width:30%
| datastyle =
}}[[分类:网站]]{{#if:{{{一级分类}}}|[[分类:{{{一级分类}}}]]|}}{{#if:{{{二级分类|}}}|[[分类:{{{二级分类}}}]]|}}</includeonly>
d58e46c8e60f002a75f0d8ca0325c9fa82f895f8
文件:我的世界 bwiki logo.png
6
101
214
2022-11-14T08:19:40Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:我的世界/BWIKI
3000
102
215
2022-11-14T08:19:48Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=我的世界_bwiki_logo.png |网站名称=中文Minecraft Wiki 镜像 |网站网址=https://wiki.biligame.com/mc/%E9%A6%96%E9%A1%B5 |一级分类=游戏 |二级分类=我的世界 |使用软件= |网站性质= |用户权限=1 |内容许可=BY-NC-SA |所属农场=BWIKI }} 本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Gamepedia没有从属关系。<ref>[https://wiki.biligame.com/mc/%E9%A6%96%E9%A1%B5 首页声明]</re…”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_bwiki_logo.png
|网站名称=中文Minecraft Wiki 镜像
|网站网址=https://wiki.biligame.com/mc/%E9%A6%96%E9%A1%B5
|一级分类=游戏
|二级分类=我的世界
|使用软件=
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
|所属农场=BWIKI
}}
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Gamepedia没有从属关系。<ref>[https://wiki.biligame.com/mc/%E9%A6%96%E9%A1%B5 首页声明]</ref>
== 参考 ==
<references />
f47c97f62238b73b7d201322a12e95ba683067dd
216
215
2022-11-14T08:23:52Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=我的世界_bwiki_logo.png
|网站名称=中文Minecraft Wiki 镜像
|网站网址=https://wiki.biligame.com/mc/%E9%A6%96%E9%A1%B5
|一级分类=游戏
|二级分类=我的世界
|使用软件=Mediawiki
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
|所属农场=BWIKI
}}
本站是中文Minecraft Wiki的镜像站,与Mojang Studios、Gamepedia没有从属关系。<ref>[https://wiki.biligame.com/mc/%E9%A6%96%E9%A1%B5 首页声明]</ref>
== 参考 ==
<references />
a59d9c722dd0ca9e4c1b60f2ac1db2fd96fed938
文件:ParaWikis.png
6
103
217
2022-11-14T08:38:38Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:ParaWikis
3000
104
218
2022-11-14T08:39:00Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=ParaWikis.png |网站名称=ParaWikis |网站网址=https://www.parawikis.com/wiki/%E9%A6%96%E9%A1%B5 |一级分类=维基农场 |使用软件=MediaWiki |网站性质=个人 |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=ParaWikis.png
|网站名称=ParaWikis
|网站网址=https://www.parawikis.com/wiki/%E9%A6%96%E9%A1%B5
|一级分类=维基农场
|使用软件=MediaWiki
|网站性质=个人
|用户权限=1
|内容许可=BY-NC-SA
}}
8d8678232d02da92102243763b690d0c4f824460
文件:AntWiki logo.jpg
6
105
219
2022-11-14T09:13:26Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:AntWiki
3000
106
220
2022-11-14T09:13:43Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=AntWiki_logo.jpg |网站名称=AntWiki |网站网址=https://www.antwiki.org/ |一级分类=生物 |二级分类=蚂蚁 |使用软件=MediaWiki |网站性质= |用户权限=2 |内容许可=BY-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=AntWiki_logo.jpg
|网站名称=AntWiki
|网站网址=https://www.antwiki.org/
|一级分类=生物
|二级分类=蚂蚁
|使用软件=MediaWiki
|网站性质=
|用户权限=2
|内容许可=BY-SA
}}
e99ff196da96c5f3692905791c5fd08be8e32815
文件:书画家百科 logo.png
6
107
221
2022-11-14T09:33:39Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:书画家百科
3000
108
222
2022-11-14T09:33:49Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=书画家百科_logo.png |网站名称=书画家百科 |网站网址=http://www.kfarts.com/index.html |一级分类=书画 |使用软件= |网站性质= |用户权限=4 |内容许可= }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=书画家百科_logo.png
|网站名称=书画家百科
|网站网址=http://www.kfarts.com/index.html
|一级分类=书画
|使用软件=
|网站性质=
|用户权限=4
|内容许可=
}}
69ce7efbed2a7d9199d06d5f13f754bc5e1120bc
文件:ArchWiki logo.svg
6
109
224
2022-11-14T09:42:24Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:ArchWiki
3000
110
225
2022-11-14T09:42:45Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=ArchWiki_logo.svg |网站名称=ArchWiki |网站网址=https://wiki.archlinux.org/ |一级分类=Linux |使用软件=MediaWiki |网站性质= |用户权限=1 |内容许可=GFDL }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=ArchWiki_logo.svg
|网站名称=ArchWiki
|网站网址=https://wiki.archlinux.org/
|一级分类=Linux
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=GFDL
}}
1b8b8adfedd817a3be9998222c37dd21a70e9ac9
模板6:Linux终端样式
3006
111
226
2022-11-18T15:45:02Z
Istudylinux
1
创建页面,内容为“== 来源 == https://www.mediawiki.org/wiki/Template:Terminal == 依赖 == * 模板:TemplateStyles == 源码 == ;页面名称 * 模板:Terminal * 模板:Terminal/styles.css ;源码 <code>模板:Terminal</code> <syntaxhighlight lang="html" line="true"> <templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}> <div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div> <pre<includeonly></incl…”
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:Terminal
== 依赖 ==
* 模板:TemplateStyles
== 源码 ==
;页面名称
* 模板:Terminal
* 模板:Terminal/styles.css
;源码
<code>模板:Terminal</code>
<syntaxhighlight lang="html" line="true">
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
</syntaxhighlight>
<code>模板:Terminal/styles.css</code>
<syntaxhighlight lang="html" line="true">
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}
</syntaxhighlight>
c3256258f31c44e774ede0540da824b1da05c7d1
227
226
2022-11-18T15:45:50Z
Istudylinux
1
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:Terminal
== 依赖 ==
* 模板:TemplateStyles
== 源码 ==
;页面名称
* 模板:Terminal
* 模板:Terminal/styles.css
;源码
<code>模板:Terminal</code>
<syntaxhighlight lang="html" line="true">
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
</syntaxhighlight>
<code>模板:Terminal/styles.css</code>
<syntaxhighlight lang="html" line="true">
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}
</syntaxhighlight>
[[分类:模板]]
[[分类:仓库]]
415668cd238c65cc7c3111e9d45b72df00147728
228
227
2022-11-18T15:47:04Z
Istudylinux
1
/* 依赖 */
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:Terminal
== 依赖 ==
* 扩展:TemplateStyles
== 源码 ==
;页面名称
* 模板:Terminal
* 模板:Terminal/styles.css
;源码
<code>模板:Terminal</code>
<syntaxhighlight lang="html" line="true">
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
</syntaxhighlight>
<code>模板:Terminal/styles.css</code>
<syntaxhighlight lang="html" line="true">
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}
</syntaxhighlight>
[[分类:模板]]
[[分类:仓库]]
30efc8beee9b2a02c46670018dadeb33dbf9b2e5
232
228
2022-11-19T14:19:46Z
Istudylinux
1
Istudylinux移动页面[[模板:Linux终端样式]]至[[模板6:Linux终端样式]],不留重定向
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:Terminal
== 依赖 ==
* 扩展:TemplateStyles
== 源码 ==
;页面名称
* 模板:Terminal
* 模板:Terminal/styles.css
;源码
<code>模板:Terminal</code>
<syntaxhighlight lang="html" line="true">
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
</syntaxhighlight>
<code>模板:Terminal/styles.css</code>
<syntaxhighlight lang="html" line="true">
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}
</syntaxhighlight>
[[分类:模板]]
[[分类:仓库]]
30efc8beee9b2a02c46670018dadeb33dbf9b2e5
243
232
2022-11-19T16:16:47Z
Istudylinux
1
/* 源码 */
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:Terminal
== 依赖 ==
* 扩展:TemplateStyles
== 源码 ==
;页面名称
* 模板:Terminal
* 模板:Terminal/styles.css
== 源码 ==
;页面名称
* 模板:Terminal
* 模板:Terminal/styles.css
;源码
{{TabbedWindowBegin}}
=== 注意 ===
=== 模板:Terminal ===
<syntaxhighlight lang="html" line="true">
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
</syntaxhighlight>
=== 模板:Terminal/styles.css ===
<syntaxhighlight lang="html" line="true">
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}
</syntaxhighlight>
{{TabbedWindowEnd}}
[[分类:模板]]
[[分类:仓库]]
966566e0ae1b696a68058f3d1c4d358c68270784
244
243
2022-11-19T16:17:13Z
Istudylinux
1
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:Terminal
== 依赖 ==
* 扩展:TemplateStyles
== 源码 ==
;页面名称
* 模板:Terminal
* 模板:Terminal/styles.css
;源码
{{TabbedWindowBegin}}
=== 模板:Terminal ===
<syntaxhighlight lang="html" line="true">
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
</syntaxhighlight>
=== 模板:Terminal/styles.css ===
<syntaxhighlight lang="html" line="true">
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}
</syntaxhighlight>
{{TabbedWindowEnd}}
[[分类:模板]]
[[分类:仓库]]
0ac79cff1985f3cc1fb99848fe7d95a46bc0852a
246
244
2022-11-19T16:30:52Z
Istudylinux
1
/* 源码 */
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:Terminal
== 依赖 ==
* 扩展:TemplateStyles
== 源码 ==
{{TabbedWindowBegin}}
=== 页面名称 ===
* 模板:Terminal
* 模板:Terminal/styles.css
=== 模板:Terminal ===
<syntaxhighlight lang="html" line="true">
<templatestyles src="Terminal/styles.css" /><div class="tpl-terminal" {{#if:{{{style|}}}|style="{{{style}}}"}}>
<div class="tpl-terminal-title"><strong>{{{title|Terminal}}}</strong></div>
<pre<includeonly></includeonly> class="plainlinks tpl-terminal-content" style="{{#if:{{{height|}}}| max-height: {{{height}}} }}; {{{textstyle|}}}">
{{{text}}}
</pre></div>
</syntaxhighlight>
=== 模板:Terminal/styles.css ===
<syntaxhighlight lang="html" line="true">
.tpl-terminal {
background-color: #222;
}
.tpl-terminal-title {
color: #fff;
padding: 0.5em 1em;
}
.tpl-terminal-content {
margin-top: 0; /* override `pre` skin style */
border: 0; /* override `pre` skin style */
border-top: 1px solid #bbb;
background-color: #111; /* override `pre` skin style */
padding: 1em;
color: #eee;
overflow: auto;
}
</syntaxhighlight>
{{TabbedWindowEnd}}
[[分类:模板]]
[[分类:仓库]]
1a36b3c648080115cd470b51347800023315cfb9
文件:语音维基 logo.png
6
112
229
2022-11-19T13:59:54Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:语音维基
3000
113
230
2022-11-19T14:00:22Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=语音维基_logo.png |网站名称=语音维基 |网站网址=https://voicewiki.cn/wiki/%E9%A6%96%E9%A1%B5 |一级分类=游戏 |二级分类=语音 |使用软件=MediaWiki |网站性质= |用户权限=1 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=语音维基_logo.png
|网站名称=语音维基
|网站网址=https://voicewiki.cn/wiki/%E9%A6%96%E9%A1%B5
|一级分类=游戏
|二级分类=语音
|使用软件=MediaWiki
|网站性质=
|用户权限=1
|内容许可=BY-NC-SA
}}
79dbc2bdb4a736e9bb46efc88b17343668b0b53e
231
230
2022-11-19T14:03:14Z
Istudylinux
1
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=语音维基_logo.png
|网站名称=语音维基
|网站网址=https://voicewiki.cn/wiki/%E9%A6%96%E9%A1%B5
|一级分类=游戏
|二级分类=语音
|使用软件=MediaWiki
|网站性质=公司
|用户权限=1
|内容许可=BY-NC-SA
}}
e09b950c9aa27e3d67d836ca6320db613f98f936
文件:多识植物百科 logo.png
6
114
233
2022-11-19T14:31:19Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:多识植物百科
3000
115
234
2022-11-19T14:31:35Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=多识植物百科_logo.png |网站名称=多识植物百科 |网站网址=https://duocet.ibiodiversity.net |一级分类=生物 |二级分类=植物 |使用软件=MediaWiki |网站性质= |用户权限=2 |内容许可=BY-NC-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=多识植物百科_logo.png
|网站名称=多识植物百科
|网站网址=https://duocet.ibiodiversity.net
|一级分类=生物
|二级分类=植物
|使用软件=MediaWiki
|网站性质=
|用户权限=2
|内容许可=BY-NC-SA
}}
da976b9f6d6569cbbca20319fe5ea32cfeec506b
模板收录
0
116
235
2022-11-19T14:56:57Z
Istudylinux
1
创建页面,内容为“== 命名 == 命名使用<code>模板6:模板名称</code>,该做法为了防止和原有的'''模板'''命名空间的冲突。 == 内容 == ;页面内容通常包含以下几个方面: * 来源 * 依赖 * 源码 * 文档 === 来源 === '''这个很重要!'''除非该模板是由你亲自从零开始编写,否则从哪个网站摘录复制,都请注明。通常是直接链接到参考的模板页面。 === 依赖 === 如果使用者要使用该…”
wikitext
text/x-wiki
== 命名 ==
命名使用<code>模板6:模板名称</code>,该做法为了防止和原有的'''模板'''命名空间的冲突。
== 内容 ==
;页面内容通常包含以下几个方面:
* 来源
* 依赖
* 源码
* 文档
=== 来源 ===
'''这个很重要!'''除非该模板是由你亲自从零开始编写,否则从哪个网站摘录复制,都请注明。通常是直接链接到参考的模板页面。
=== 依赖 ===
如果使用者要使用该模板,该模板可能会依赖些什么,一般来说可能会有以下情况
# 就模板内会使用一些解析器函数,这些函数可能被包含于某个扩展,所以在该模板的依赖可能包含某些扩展
# 可能模板内需要使用一些配置,比如需要在LocalSettings.php里面设置相关的变量,这个需要添加
=== 源码 ===
该标题下添加对应模板的源码,需要声明该模板有哪些文件,比如:
<pre>
模板:消息盒子
模板:消息盒子/styles.css
模板:消息盒子/doc
</pre>
上面的内容说明了该模板具备3个页面,一个模板的主体调用页面,一个模板所使用的样式页面,一个是关于如何使用该模板的doc,文档页面。
使用者在使用复制源码的时候,也应该使用这种层级的页面命名或者部署。
声明完成内容后,则需要在后面开始添加源码内容,使用'''<syntaxhighlight>'''标签来填充源码内容。
=== 文档 ===
文档这个就不好说了,毕竟有的大型的模板文档里面关于如何使用都是哗啦哗啦的巨幅篇章。能复制就复制,不能复制就使用链接指过去吧。
207db9f5286dbe717699a87ace277da7459350de
236
235
2022-11-19T14:57:08Z
Istudylinux
1
wikitext
text/x-wiki
== 命名 ==
命名使用<code>模板6:模板名称</code>,该做法为了防止和原有的'''模板'''命名空间的冲突。
== 内容 ==
;页面内容通常包含以下几个方面:
* 来源
* 依赖
* 源码
* 文档
=== 来源 ===
'''这个很重要!'''除非该模板是由你亲自从零开始编写,否则从哪个网站摘录复制,都请注明。通常是直接链接到参考的模板页面。
=== 依赖 ===
如果使用者要使用该模板,该模板可能会依赖些什么,一般来说可能会有以下情况
# 就模板内会使用一些解析器函数,这些函数可能被包含于某个扩展,所以在该模板的依赖可能包含某些扩展
# 可能模板内需要使用一些配置,比如需要在LocalSettings.php里面设置相关的变量,这个需要添加
=== 源码 ===
该标题下添加对应模板的源码,需要声明该模板有哪些文件,比如:
<pre>
模板:消息盒子
模板:消息盒子/styles.css
模板:消息盒子/doc
</pre>
上面的内容说明了该模板具备3个页面,一个模板的主体调用页面,一个模板所使用的样式页面,一个是关于如何使用该模板的doc,文档页面。
使用者在使用复制源码的时候,也应该使用这种层级的页面命名或者部署。
声明完成内容后,则需要在后面开始添加源码内容,使用'''<syntaxhighlight>'''标签来填充源码内容。
=== 文档 ===
文档这个就不好说了,毕竟有的大型的模板文档里面关于如何使用都是哗啦哗啦的巨幅篇章。能复制就复制,不能复制就使用链接指过去吧。
[[分类:规则]]
a6045ad512100d0b1ffdb6b4132357c98086a21f
247
236
2022-11-20T05:25:28Z
Istudylinux
1
wikitext
text/x-wiki
== 命名 ==
命名使用<code>模板6:模板名称</code>,该做法为了防止和原有的'''模板'''命名空间的冲突。
== 内容 ==
;页面内容通常包含以下几个方面:
* 来源
* 依赖
* 源码
* 文档
=== 来源 ===
'''这个很重要!'''除非该模板是由你亲自从零开始编写,否则从哪个网站摘录复制,都请注明。通常是直接链接到参考的模板页面。
=== 依赖 ===
如果使用者要使用该模板,该模板可能会依赖些什么,一般来说可能会有以下情况
# 就模板内会使用一些解析器函数,这些函数可能被包含于某个扩展,所以在该模板的依赖可能包含某些扩展
# 可能模板内需要使用一些配置,比如需要在LocalSettings.php里面设置相关的变量,这个需要添加
=== 源码 ===
该标题下添加对应模板的源码,需要声明该模板有哪些文件,比如:
<pre>
模板:消息盒子
模板:消息盒子/styles.css
模板:消息盒子/doc
</pre>
上面的内容说明了该模板具备3个页面,一个模板的主体调用页面,一个模板所使用的样式页面,一个是关于如何使用该模板的doc,文档页面。
使用者在使用复制源码的时候,也应该使用这种层级的页面命名或者部署。
然后使用如下的模板和内容进行填充操作:
<pre>
{{TabbedWindowBegin}}
=== 页面名称 ===
* 模板6:测试
* 模板6:测试/styles.css
=== 模板6:测试 ===
<syntaxhighlight lang="html" line="true">
相关代码
</syntaxhighlight>
=== 模板6:测试/styles.css ===
<syntaxhighlight lang="css" line="true">
相关代码
</syntaxhighlight>
{{TabbedWindowEnd}}
</pre>
=== 文档 ===
文档这个就不好说了,毕竟有的大型的模板文档里面关于如何使用都是哗啦哗啦的巨幅篇章。能复制就复制,不能复制就使用链接指过去吧。
== 分类 ==
分类必须包含'''仓库''','''模板'''。
[[分类:规则]]
86b55577f77bd37a4995ab6f0eb0894fa96511d7
254
247
2022-11-20T07:23:27Z
Istudylinux
1
wikitext
text/x-wiki
== 命名 ==
命名使用<code>模板6:模板名称</code>,该做法为了防止和原有的'''模板'''命名空间的冲突。
== 内容 ==
;页面内容通常包含以下几个方面:
* 来源
* 依赖
* 源码
* 文档
=== 来源 ===
'''这个很重要!'''除非该模板是由你亲自从零开始编写,否则从哪个网站摘录复制,都请注明。通常是直接链接到参考的模板页面。
=== 依赖 ===
如果使用者要使用该模板,该模板可能会依赖些什么,一般来说可能会有以下情况
# 就模板内会使用一些解析器函数,这些函数可能被包含于某个扩展,所以在该模板的依赖可能包含某些扩展
# 可能模板内需要使用一些配置,比如需要在LocalSettings.php里面设置相关的变量,这个需要添加
=== 源码 ===
该标题下添加对应模板的源码,需要声明该模板有哪些文件,比如:
<pre>
模板:消息盒子
模板:消息盒子/styles.css
模板:消息盒子/doc
</pre>
上面的内容说明了该模板具备3个页面,一个模板的主体调用页面,一个模板所使用的样式页面,一个是关于如何使用该模板的doc,文档页面。
使用者在使用复制源码的时候,也应该使用这种层级的页面命名或者部署。
然后使用如下的模板和内容进行填充操作:
<pre>
{{TabbedWindowBegin}}
=== 页面名称 ===
* 模板:测试
* 模板:测试/styles.css
=== 模板:测试 ===
<syntaxhighlight lang="html" line="true">
相关代码
</syntaxhighlight>
=== 模板:测试/styles.css ===
<syntaxhighlight lang="css" line="true">
相关代码
</syntaxhighlight>
{{TabbedWindowEnd}}
</pre>
=== 文档 ===
文档这个就不好说了,毕竟有的大型的模板文档里面关于如何使用都是哗啦哗啦的巨幅篇章。能复制就复制,不能复制就使用链接指过去吧。
== 分类 ==
分类必须包含'''仓库''','''模板'''。
[[分类:规则]]
820110d4fd4aa6c11de27560672b898e9fce24e5
模板:TabbedWindowBegin
10
117
237
2022-11-19T15:15:25Z
Istudylinux
1
创建页面,内容为“<includeonly><div class="mw-gadget-tabbedwindow"></includeonly>”
wikitext
text/x-wiki
<includeonly><div class="mw-gadget-tabbedwindow"></includeonly>
bf449a4cb43c56de07a9e4e615f133e8ae741f5e
模板:TabbedWindowEnd
10
118
238
2022-11-19T15:15:53Z
Istudylinux
1
创建页面,内容为“<includeonly><div></includeonly>”
wikitext
text/x-wiki
<includeonly><div></includeonly>
1289e1cc971b9bb1f0b4d506f66d7354b4e97d3a
MediaWiki:Gadget-tabbedwindow.js
8
119
239
2022-11-19T15:17:01Z
Istudylinux
1
创建页面,内容为“/** * * tabbedWindow.js * * It embeds an OOUI tabbed window on all pages in the API namespace on MediaWiki.org. * Each tab of the window contains sample code in a programming language (PHP, Javascript, Python, etc.) * demonstrating the use of the MediaWiki Action API. * * @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later * @licstart The following is the entire license notice for the JavaScript code in…”
javascript
text/javascript
/**
*
* tabbedWindow.js
*
* It embeds an OOUI tabbed window on all pages in the API namespace on MediaWiki.org.
* Each tab of the window contains sample code in a programming language (PHP, Javascript, Python, etc.)
* demonstrating the use of the MediaWiki Action API.
*
* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
* @licstart The following is the entire license notice for the JavaScript code in this gadget.
*
* Copyright (C) 2019 Jay Prakash <https://meta.wikimedia.org/wiki/User:Jayprakash12345> and contributors
*
* The JavaScript/Gadget code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript/Gadget code in this gadget.
*/
( function () {
'use strict';
function trySettingTab( indexLayout, hash ) {
var possiblePanelName = hash.slice( 1 );
var possiblePanel = possiblePanelName && indexLayout.getTabPanel( possiblePanelName );
if ( possiblePanel ) {
indexLayout.setTabPanel( possiblePanelName );
indexLayout.scrollElementIntoView();
}
}
/**
* This function fetches sample code in different programming languages
* from the sub-sections of the section "Sample Code" and places
* them into an OOUI tabbed window.
*
* @param {jQuery} $tabbedWindows
*/
function makeTabWindow( $tabbedWindows ) {
var tabs = [];
$tabbedWindows.each( function () {
var panelLayout,
indexLayout = new OO.ui.IndexLayout( {
expanded: false
} );
$( this ).find( 'h3, h4, h5, h6' ).each( function () {
$( this ).find( '.mw-editsection' ).remove();
var id = $( this ).find( 'span[class=mw-headline]' ).attr( 'id' );
var $content = $( this ).nextUntil( 'h3, h4, h5, h6' );
var tabPanel = new OO.ui.TabPanelLayout( id, {
expanded: false,
label: $( this ).text(),
// Attach the original DOM elements directly by reference.
// This means they move directly in memory instead of getting copied/serialized/parsed as HTML.
// If we didn't move them, but instead copied and re-parsed HTML, then it would disconnect events
// and other live references from gadgets and extensions, which breaks sorting features, responsive gallery, etc.
$content: $content
} );
tabPanel.$element.css( 'padding', '0.5em' );
tabs.push( tabPanel );
} );
indexLayout.addTabPanels( tabs );
tabs = [];
panelLayout = new OO.ui.PanelLayout( {
expanded: false,
framed: true,
content: [ indexLayout ]
} );
$( this ).empty().append( panelLayout.$element );
// Select and scroll to any initially linked item in the address
trySettingTab( indexLayout, location.hash );
// Keep address bar updated with sharable link (also makes forward/backward browser navigation work)
if ( history.replaceState ) {
indexLayout.on( 'set', function ( tabPanel ) {
history.replaceState( null, document.title, '#' + tabPanel.getName() );
} );
}
// Support anchor links on the same page (from table of Contents, or [[#Section]] links)
window.addEventListener( 'hashchange', function () {
trySettingTab( indexLayout, location.hash );
} );
} );
}
// Quick check (dependency-free, this is executed for all pages/actions/namespaces)
var $tabbedWindows,
supportedNamespaces = [ 'API', 'Help', 'Manual', '' ],
action = mw.config.get( 'wgAction' ),
namespace = mw.config.get( 'wgCanonicalNamespace' );
if (
supportedNamespaces.indexOf( namespace ) !== -1 ||
mw.config.get( 'wgPageName' ).indexOf( 'Template:TabbedWindowBegin' ) === 0
) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
// Expensive checks (only on the subset of supported pages)
$tabbedWindows = $content.find( '.mw-gadget-tabbedwindow' );
if ( $tabbedWindows.length > 0 ) {
// Viewing an API subject page with tabs on it, let's make them nice!
mw.loader.using( [ 'oojs-ui-widgets' ] ).then( function () {
makeTabWindow( $tabbedWindows );
} );
}
} );
}
}() );
ba09c608c729d998224b0289ceba5ecd2aa7ad46
245
239
2022-11-19T16:28:01Z
Istudylinux
1
javascript
text/javascript
/**
*
* tabbedWindow.js
*
* It embeds an OOUI tabbed window on all pages in the API namespace on MediaWiki.org.
* Each tab of the window contains sample code in a programming language (PHP, Javascript, Python, etc.)
* demonstrating the use of the MediaWiki Action API.
*
* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
* @licstart The following is the entire license notice for the JavaScript code in this gadget.
*
* Copyright (C) 2019 Jay Prakash <https://meta.wikimedia.org/wiki/User:Jayprakash12345> and contributors
*
* The JavaScript/Gadget code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript/Gadget code in this gadget.
*/
( function () {
'use strict';
function trySettingTab( indexLayout, hash ) {
var possiblePanelName = hash.slice( 1 );
var possiblePanel = possiblePanelName && indexLayout.getTabPanel( possiblePanelName );
if ( possiblePanel ) {
indexLayout.setTabPanel( possiblePanelName );
indexLayout.scrollElementIntoView();
}
}
/**
* This function fetches sample code in different programming languages
* from the sub-sections of the section "Sample Code" and places
* them into an OOUI tabbed window.
*
* @param {jQuery} $tabbedWindows
*/
function makeTabWindow( $tabbedWindows ) {
var tabs = [];
$tabbedWindows.each( function () {
var panelLayout,
indexLayout = new OO.ui.IndexLayout( {
expanded: false
} );
$( this ).find( 'h3, h4, h5, h6' ).each( function () {
$( this ).find( '.mw-editsection' ).remove();
var id = $( this ).find( 'span[class=mw-headline]' ).attr( 'id' );
var $content = $( this ).nextUntil( 'h3, h4, h5, h6' );
var tabPanel = new OO.ui.TabPanelLayout( id, {
expanded: false,
label: $( this ).text(),
// Attach the original DOM elements directly by reference.
// This means they move directly in memory instead of getting copied/serialized/parsed as HTML.
// If we didn't move them, but instead copied and re-parsed HTML, then it would disconnect events
// and other live references from gadgets and extensions, which breaks sorting features, responsive gallery, etc.
$content: $content
} );
tabPanel.$element.css( 'padding', '0.5em' );
tabs.push( tabPanel );
} );
indexLayout.addTabPanels( tabs );
tabs = [];
panelLayout = new OO.ui.PanelLayout( {
expanded: false,
framed: true,
content: [ indexLayout ]
} );
$( this ).empty().append( panelLayout.$element );
// Select and scroll to any initially linked item in the address
trySettingTab( indexLayout, location.hash );
// Keep address bar updated with sharable link (also makes forward/backward browser navigation work)
if ( history.replaceState ) {
indexLayout.on( 'set', function ( tabPanel ) {
history.replaceState( null, document.title, '#' + tabPanel.getName() );
} );
}
// Support anchor links on the same page (from table of Contents, or [[#Section]] links)
window.addEventListener( 'hashchange', function () {
trySettingTab( indexLayout, location.hash );
} );
} );
}
// Quick check (dependency-free, this is executed for all pages/actions/namespaces)
var $tabbedWindows,
supportedNamespaces = [ 'API', 'Help', 'Manual', '模板6', '' ],
action = mw.config.get( 'wgAction' ),
namespace = mw.config.get( 'wgCanonicalNamespace' );
if (
supportedNamespaces.indexOf( namespace ) !== -1 ||
mw.config.get( 'wgPageName' ).indexOf( 'Template:TabbedWindowBegin' ) === 0
) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
// Expensive checks (only on the subset of supported pages)
$tabbedWindows = $content.find( '.mw-gadget-tabbedwindow' );
if ( $tabbedWindows.length > 0 ) {
// Viewing an API subject page with tabs on it, let's make them nice!
mw.loader.using( [ 'oojs-ui-widgets' ] ).then( function () {
makeTabWindow( $tabbedWindows );
} );
}
} );
}
}() );
a2cb20c6a4470499d1854fda74972844e39ba53e
250
245
2022-11-20T07:03:27Z
Istudylinux
1
javascript
text/javascript
/**
*
* tabbedWindow.js
*
* It embeds an OOUI tabbed window on all pages in the API namespace on MediaWiki.org.
* Each tab of the window contains sample code in a programming language (PHP, Javascript, Python, etc.)
* demonstrating the use of the MediaWiki Action API.
*
* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
* @licstart The following is the entire license notice for the JavaScript code in this gadget.
*
* Copyright (C) 2019 Jay Prakash <https://meta.wikimedia.org/wiki/User:Jayprakash12345> and contributors
*
* The JavaScript/Gadget code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript/Gadget code in this gadget.
*/
( function () {
'use strict';
function trySettingTab( indexLayout, hash ) {
var possiblePanelName = hash.slice( 1 );
var possiblePanel = possiblePanelName && indexLayout.getTabPanel( possiblePanelName );
if ( possiblePanel ) {
indexLayout.setTabPanel( possiblePanelName );
indexLayout.scrollElementIntoView();
}
}
/**
* This function fetches sample code in different programming languages
* from the sub-sections of the section "Sample Code" and places
* them into an OOUI tabbed window.
*
* @param {jQuery} $tabbedWindows
*/
function makeTabWindow( $tabbedWindows ) {
var tabs = [];
$tabbedWindows.each( function () {
var panelLayout,
indexLayout = new OO.ui.IndexLayout( {
expanded: false
} );
$( this ).find( 'h3, h4, h5, h6' ).each( function () {
$( this ).find( '.mw-editsection' ).remove();
var id = $( this ).find( 'span[class=mw-headline]' ).attr( 'id' );
var $content = $( this ).nextUntil( 'h3, h4, h5, h6' );
var tabPanel = new OO.ui.TabPanelLayout( id, {
expanded: false,
label: $( this ).text(),
// Attach the original DOM elements directly by reference.
// This means they move directly in memory instead of getting copied/serialized/parsed as HTML.
// If we didn't move them, but instead copied and re-parsed HTML, then it would disconnect events
// and other live references from gadgets and extensions, which breaks sorting features, responsive gallery, etc.
$content: $content
} );
tabPanel.$element.css( 'padding', '0.5em' );
tabs.push( tabPanel );
} );
indexLayout.addTabPanels( tabs );
tabs = [];
panelLayout = new OO.ui.PanelLayout( {
expanded: false,
framed: true,
content: [ indexLayout ]
} );
$( this ).empty().append( panelLayout.$element );
// Select and scroll to any initially linked item in the address
trySettingTab( indexLayout, location.hash );
// Keep address bar updated with sharable link (also makes forward/backward browser navigation work)
if ( history.replaceState ) {
indexLayout.on( 'set', function ( tabPanel ) {
history.replaceState( null, document.title, '#' + tabPanel.getName() );
} );
}
// Support anchor links on the same page (from table of Contents, or [[#Section]] links)
window.addEventListener( 'hashchange', function () {
trySettingTab( indexLayout, location.hash );
} );
} );
}
// Quick check (dependency-free, this is executed for all pages/actions/namespaces)
var $tabbedWindows,
supportedNamespaces = [ 'API', 'Help', 'Manual', '模板6', '前端', '' ],
action = mw.config.get( 'wgAction' ),
namespace = mw.config.get( 'wgCanonicalNamespace' );
if (
supportedNamespaces.indexOf( namespace ) !== -1 ||
mw.config.get( 'wgPageName' ).indexOf( 'Template:TabbedWindowBegin' ) === 0
) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
// Expensive checks (only on the subset of supported pages)
$tabbedWindows = $content.find( '.mw-gadget-tabbedwindow' );
if ( $tabbedWindows.length > 0 ) {
// Viewing an API subject page with tabs on it, let's make them nice!
mw.loader.using( [ 'oojs-ui-widgets' ] ).then( function () {
makeTabWindow( $tabbedWindows );
} );
}
} );
}
}() );
25819b409ef083fb6e4f85547bba0aa5a5b66904
MediaWiki:Gadgets-definition
8
120
240
2022-11-19T15:46:54Z
Istudylinux
1
创建页面,内容为“== interface-gadgets == * tabbedwindow[ResourceLoader|default]|tabbedwindow.js”
wikitext
text/x-wiki
== interface-gadgets ==
* tabbedwindow[ResourceLoader|default]|tabbedwindow.js
a6a743bf9f2c4431d2b90528ca83ceef83b0956e
242
240
2022-11-19T16:04:37Z
Istudylinux
1
wikitext
text/x-wiki
* tabbedwindow[ResourceLoader|default]|tabbedwindow.js
1a63dda58089541358a0b7ea161946192817d47b
MediaWiki:Gadget-section-interface-gadgets
8
121
241
2022-11-19T16:00:31Z
Istudylinux
1
创建页面,内容为“User interface gadgets”
wikitext
text/x-wiki
User interface gadgets
f3cdd0b9fbe3cd8c9698833a41b5d63310a45f94
模板:首页
10
13
249
187
2022-11-20T07:00:22Z
Istudylinux
1
wikitext
text/x-wiki
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
{{#dpl:
|category=入门
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>模板仓库</span></h3>
<div id="mainpage-users" title="模板仓库" class="items">
{{#dpl:
|category=模板
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>前端仓库</span></h3>
<div id="mainpage-devs" title="前端仓库" class="items">
{{#dpl:
|category=前端
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
{{#dpl:
|category=维基农场
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
最近添加:
{{#dpl:
|category=网站
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
<span class="plainlinks">[[网站|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
</div>
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>相关规则</span></h3>
<div id="mainpage-news" title="相关规则" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
网站规则:
[[Istudylinux:关于]]
{{#dpl:
|category=规则
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
f2527e47ea61a04e06375e184d639f372a20f7b4
前端:Mediawiki首页
3002
25
251
83
2022-11-20T07:05:38Z
Istudylinux
1
wikitext
text/x-wiki
== 来源 ==
来源:[https://www.mediawiki.org/w/index.php?title=Template:Main_page Template:Main_page]
== 依赖 ==
* 扩展:模板样式(TemplateStyles)
* 多张图片,用于更改对应box的<code>Mediawiki.png</code>
== 代码 ==
{{TabbedWindowBegin}}
=== 页面名称 ===
* 模板:首页
* 模板:首页/styles.css
=== 模板:首页 ===
<syntaxhighlight lang="html" line="true">
<templatestyles src="模板:首页/styles.css" />
<div aria-hidden="true" role="presentation">
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题1</span></h3>
<div id="mainpage-admins" title="标题1" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题2</span></h3>
<div id="mainpage-users" title="标题2" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题3</span></h3>
<div id="mainpage-devs" title="标题3" class="items">
一些描述性的话。
* 条目1
* 条目2
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题4</span></h3>
<div id=mainpage-help-contribute" title="标题4" class="items">
* 条目1
* 条目2
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:Mediawiki.png|20px|middle|link=]]</span><span>标题5</span></h3>
<div id="mainpage-news" title="标题5" class="items">
<div style="margin: auto; vertical-align:top; text-align:right}}">
<div class="mainpage_boxcontents_small">
* 条目1
* 条目2
</div>
<span class="plainlinks">[# <span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]</span>
<span class="plainlinks">[[File:Mediawiki.png|text-bottom|16px|link=https://www.facebook.com/MediaWikiProject]][[File:Mediawiki.png|text-bottom|17px|link=#]]</span>
</div>
</div>
</div>
</div>
</div>
__NOTOC__
</syntaxhighlight>
=== 模板:首页/styles.css ===
<syntaxhighlight lang="css" line="true" >
/* CSS used for https://www.mediawiki.org/wiki/MediaWiki/Homepage_improvements_2018 : */
.mainpage_row {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
padding: 0;
margin: 0 -5px 0 -5px;
}
.mainpage_box {
flex: 1;
margin: 5px;
min-width: 210px;
border: 1px solid #CCC;
padding: 0 10px 10px 10px;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.mainpage_box h3 {
/* Reset padding so is equal across skins */
padding-right: 0;
padding-top: 0;
padding-bottom: 0;
/* Padding left gets overridden by headanchor gadget */
margin: 0.5em 0;
}
/* Set padding left only if headanchor gadget is not enabled */
.mainpage_box h3:not(.tpl-vheadanchor-heading) {
padding-left: 0;
}
.mainpage_box h3 .header_icon {
float: left;
margin-right: 5px;
}
.mainpage_box .items {
border-top: 1px solid #CCC;
padding-top: 0.5em;
}
.mainpage_box p:last-child {
margin-bottom: 0;
}
.mainpage_boxcontents_small {
font-size: 95%;
}
/* Style the "other languages" box the same way as other boxes on the main page */
.mw-pt-languages {
display: block;
background: none;
border: 1px solid #CCC;
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
width: auto;
}
.mw-pt-languages-label {
background: none;
border-right: none;
}
@media screen and (max-width: 719px) {
.thumb {
float: none;
}
.thumb, .thumbinner {
margin-left: auto;
margin-right: auto;
}
}
</syntaxhighlight>
{{TabbedWindowEnd}}
[[分类:前端]]
[[分类:仓库]]
8c26b431bf9e618f52a7777098a9ea480b586066
前端:页面快速置顶置底
3002
49
252
87
2022-11-20T07:07:07Z
Istudylinux
1
/* 源码 */
wikitext
text/x-wiki
== 源码来源 ==
[https://zh.wikipedia.org/wiki/MediaWiki:Gadget-scrollUpButton.js MediaWiki:Gadget-scrollUpButton.js]
== 功能 ==
该源码实现的功能为在当前页面右下角添加'''置顶'''按钮和'''置底'''按钮。
== 可修改内容 ==
* 可以更改源码高亮的图片链接地址,默认使用中文维基百科的箭头图片。
* 仅需要'''上箭头'''的图片
== 源码 ==
=== 注意 ===
# 如果你安装了Extension:Gadget,你可以直接使用<code>MediaWiki:Gadget-scrollUpButton.js</code>作为脚本名称
# 如果你没有安装Gadget扩展,则将下面的代码复制到<code>MediaWiki:Common.js</code>
{{TabbedWindowBegin}}
=== MediaWiki:Gadget-scrollUpButton.js ===
<syntaxhighlight lang="JavaScript" line="true" highlight="16,18">
/* scrollUpButton
* Add a button to scroll up to the top of the current page.
* @rev 3 (2019-28-07)
* @author Kwj2772
* @contributor Perhelion
* No internationalisation required
* [kowiki] Fixed an issue with help-panel-button ([[ko:User:ykhwong]])
* [zhwiki] Add a timer to autohide button, check more gadgets. Add scrollDownButton
* @from https://ko.wikipedia.org/?oldid=25440719
* @maintainer 安忆 ([[zh:User:AnYiLin]])
*/
(function($, mw) {
var scrollDownButtonId = 'scrollDownButton-zhwiki',
scrollUpButtonId = 'scrollUpButton-zhwiki';
var scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg';
if (!document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'))
scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg/32px-Font_Awesome_5_regular_arrow-circle-up_blue.svg.png';
$scrollDownButton = $('<img>', {
src: scrollButtonIcon,
id: scrollDownButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
transform: 'rotate(180deg)',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: $(document).height() - $(window).height()
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
$scrollUpButton = $('<img>', {
src: scrollButtonIcon,
id: scrollUpButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: 0
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
var scrollButtonTimer;
$(window).on('scroll', function() {
var dingHeight = $('#bluedeck_ding>div').height() ? $('#bluedeck_ding>div').height() : 0;
$scrollDownButton.css('bottom', dingHeight + 24 + 'px');
$scrollUpButton.css('bottom', dingHeight + 65 + 'px');
(mw.config.get('wgGEHelpPanelEnabled') && $('#mw-ge-help-panel-cta-button').length > 0) || $('#cat_a_lot').length > 0 || $('#proveit').length > 0 || $('.wordcount').length > 0 ? $scrollDownButton.css('left', '10px') && $scrollUpButton.css('left', '10px') : $scrollDownButton.css('left', 'unset') && $scrollUpButton.css('left', 'unset');
$(this).scrollTop() > 60 ? $scrollDownButton.fadeIn('slow') && $scrollUpButton.fadeIn('slow') : $scrollDownButton.fadeOut('slow') && $scrollUpButton.fadeOut('slow');
this.clearTimeout(scrollButtonTimer);
scrollButtonTimer = this.setTimeout(function() {
$scrollDownButton.fadeOut('slow');
$scrollUpButton.fadeOut('slow')
}, 2000)
});
$scrollDownButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
});
$scrollUpButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
})
})(jQuery, mw);
</syntaxhighlight>
{{TabbedWindowEnd}}
[[分类:前端]]
[[分类:仓库]]
51e5c3147949935f5e50f990a3d7f540b4259066
253
252
2022-11-20T07:07:33Z
Istudylinux
1
wikitext
text/x-wiki
== 源码来源 ==
[https://zh.wikipedia.org/wiki/MediaWiki:Gadget-scrollUpButton.js MediaWiki:Gadget-scrollUpButton.js]
== 功能 ==
该源码实现的功能为在当前页面右下角添加'''置顶'''按钮和'''置底'''按钮。
== 可修改内容 ==
* 可以更改源码高亮的图片链接地址,默认使用中文维基百科的箭头图片。
* 仅需要'''上箭头'''的图片
== 源码 ==
=== 注意 ===
# 如果你安装了Extension:Gadget,你可以直接使用<code>MediaWiki:Gadget-scrollUpButton.js</code>作为脚本名称
# 如果你没有安装Gadget扩展,则将下面的代码复制到<code>MediaWiki:Common.js</code>
=== MediaWiki:Gadget-scrollUpButton.js ===
<syntaxhighlight lang="JavaScript" line="true" highlight="16,18">
/* scrollUpButton
* Add a button to scroll up to the top of the current page.
* @rev 3 (2019-28-07)
* @author Kwj2772
* @contributor Perhelion
* No internationalisation required
* [kowiki] Fixed an issue with help-panel-button ([[ko:User:ykhwong]])
* [zhwiki] Add a timer to autohide button, check more gadgets. Add scrollDownButton
* @from https://ko.wikipedia.org/?oldid=25440719
* @maintainer 安忆 ([[zh:User:AnYiLin]])
*/
(function($, mw) {
var scrollDownButtonId = 'scrollDownButton-zhwiki',
scrollUpButtonId = 'scrollUpButton-zhwiki';
var scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg';
if (!document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#Image', '1.1'))
scrollButtonIcon = '//upload.wikimedia.org/wikipedia/commons/thumb/5/59/Font_Awesome_5_regular_arrow-circle-up_blue.svg/32px-Font_Awesome_5_regular_arrow-circle-up_blue.svg.png';
$scrollDownButton = $('<img>', {
src: scrollButtonIcon,
id: scrollDownButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
transform: 'rotate(180deg)',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: $(document).height() - $(window).height()
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
$scrollUpButton = $('<img>', {
src: scrollButtonIcon,
id: scrollUpButtonId,
class: 'noprint',
}).css({
cursor: 'pointer',
opacity: 0.7,
position: 'fixed',
display: 'none',
right: '18px',
'user-select': 'none'
}).on('click', function() {
$('html, body').animate({
scrollTop: 0
}, 660)
}).on('mouseenter mouseleave', function(e) {
this.style.opacity = e.type === 'mouseenter' ? 1 : 0.7
}).attr('draggable', 'false').appendTo('body');
var scrollButtonTimer;
$(window).on('scroll', function() {
var dingHeight = $('#bluedeck_ding>div').height() ? $('#bluedeck_ding>div').height() : 0;
$scrollDownButton.css('bottom', dingHeight + 24 + 'px');
$scrollUpButton.css('bottom', dingHeight + 65 + 'px');
(mw.config.get('wgGEHelpPanelEnabled') && $('#mw-ge-help-panel-cta-button').length > 0) || $('#cat_a_lot').length > 0 || $('#proveit').length > 0 || $('.wordcount').length > 0 ? $scrollDownButton.css('left', '10px') && $scrollUpButton.css('left', '10px') : $scrollDownButton.css('left', 'unset') && $scrollUpButton.css('left', 'unset');
$(this).scrollTop() > 60 ? $scrollDownButton.fadeIn('slow') && $scrollUpButton.fadeIn('slow') : $scrollDownButton.fadeOut('slow') && $scrollUpButton.fadeOut('slow');
this.clearTimeout(scrollButtonTimer);
scrollButtonTimer = this.setTimeout(function() {
$scrollDownButton.fadeOut('slow');
$scrollUpButton.fadeOut('slow')
}, 2000)
});
$scrollDownButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
});
$scrollUpButton.on('mouseenter', function() {
window.clearTimeout(scrollButtonTimer)
})
})(jQuery, mw);
</syntaxhighlight>
[[分类:前端]]
[[分类:仓库]]
d9fb4677798542e54af9a79332eb074ef56ec356
模板6:Tabber窗口切换
3006
122
255
2022-11-20T07:37:32Z
Istudylinux
1
创建页面,内容为“== 来源 == https://www.mediawiki.org/wiki/Template:TabbedWindowBegin == 依赖 == * 扩展:Gadgets(非必须) == 移植事项 == # 如果你没有使用Gadgets这个扩展,则需要将<code>MediaWiki:Gadget-tabbedwindow.js</code>里的源码复制到<code>Mediawiki:common.js</code>里面,就行了 # 如果你使用了自定义的命名空间,需要根据[[命名空间]]对应的名称在[[##MediaWiki:Gadget-tabbedwindow.js]]里的110行添加对…”
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:TabbedWindowBegin
== 依赖 ==
* 扩展:Gadgets(非必须)
== 移植事项 ==
# 如果你没有使用Gadgets这个扩展,则需要将<code>MediaWiki:Gadget-tabbedwindow.js</code>里的源码复制到<code>Mediawiki:common.js</code>里面,就行了
# 如果你使用了自定义的命名空间,需要根据[[命名空间]]对应的名称在[[##MediaWiki:Gadget-tabbedwindow.js]]里的110行添加对应的命名空间名称的支持,中英文都可。比如<pre>supportedNamespaces = [ 'API', 'Help', 'Manual', '模板', '' ],</pre>
== 源码 ==
{{TabbedWindowBegin}}
=== 页面名称 ===
* 模板:TabbedWindowBegin
* 模板:TabbedWindowEnd
* MediaWiki:Gadget-tabbedwindow.js
=== 模板:TabbedWindowBegin ===
<syntaxhighlight lang="html" line="true">
<includeonly><div class="mw-gadget-tabbedwindow"></includeonly>
</syntaxhighlight>
=== 模板:TabbedWindowEnd ===
<syntaxhighlight lang="html" line="true">
<includeonly></div><includeonly>
</syntaxhighlight>
=== MediaWiki:Gadget-tabbedwindow.js ===
<syntaxhighlight lang="JavaScript" line="true">
/**
*
* tabbedWindow.js
*
* It embeds an OOUI tabbed window on all pages in the API namespace on MediaWiki.org.
* Each tab of the window contains sample code in a programming language (PHP, Javascript, Python, etc.)
* demonstrating the use of the MediaWiki Action API.
*
* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
* @licstart The following is the entire license notice for the JavaScript code in this gadget.
*
* Copyright (C) 2019 Jay Prakash <https://meta.wikimedia.org/wiki/User:Jayprakash12345> and contributors
*
* The JavaScript/Gadget code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript/Gadget code in this gadget.
*/
( function () {
'use strict';
function trySettingTab( indexLayout, hash ) {
var possiblePanelName = hash.slice( 1 );
var possiblePanel = possiblePanelName && indexLayout.getTabPanel( possiblePanelName );
if ( possiblePanel ) {
indexLayout.setTabPanel( possiblePanelName );
indexLayout.scrollElementIntoView();
}
}
/**
* This function fetches sample code in different programming languages
* from the sub-sections of the section "Sample Code" and places
* them into an OOUI tabbed window.
*
* @param {jQuery} $tabbedWindows
*/
function makeTabWindow( $tabbedWindows ) {
var tabs = [];
$tabbedWindows.each( function () {
var panelLayout,
indexLayout = new OO.ui.IndexLayout( {
expanded: false
} );
$( this ).find( 'h3, h4, h5, h6' ).each( function () {
$( this ).find( '.mw-editsection' ).remove();
var id = $( this ).find( 'span[class=mw-headline]' ).attr( 'id' );
var $content = $( this ).nextUntil( 'h3, h4, h5, h6' );
var tabPanel = new OO.ui.TabPanelLayout( id, {
expanded: false,
label: $( this ).text(),
// Attach the original DOM elements directly by reference.
// This means they move directly in memory instead of getting copied/serialized/parsed as HTML.
// If we didn't move them, but instead copied and re-parsed HTML, then it would disconnect events
// and other live references from gadgets and extensions, which breaks sorting features, responsive gallery, etc.
$content: $content
} );
tabPanel.$element.css( 'padding', '0.5em' );
tabs.push( tabPanel );
} );
indexLayout.addTabPanels( tabs );
tabs = [];
panelLayout = new OO.ui.PanelLayout( {
expanded: false,
framed: true,
content: [ indexLayout ]
} );
$( this ).empty().append( panelLayout.$element );
// Select and scroll to any initially linked item in the address
trySettingTab( indexLayout, location.hash );
// Keep address bar updated with sharable link (also makes forward/backward browser navigation work)
if ( history.replaceState ) {
indexLayout.on( 'set', function ( tabPanel ) {
history.replaceState( null, document.title, '#' + tabPanel.getName() );
} );
}
// Support anchor links on the same page (from table of Contents, or [[#Section]] links)
window.addEventListener( 'hashchange', function () {
trySettingTab( indexLayout, location.hash );
} );
} );
}
// Quick check (dependency-free, this is executed for all pages/actions/namespaces)
var $tabbedWindows,
supportedNamespaces = [ 'API', 'Help', 'Manual', '' ],
action = mw.config.get( 'wgAction' ),
namespace = mw.config.get( 'wgCanonicalNamespace' );
if (
supportedNamespaces.indexOf( namespace ) !== -1 ||
mw.config.get( 'wgPageName' ).indexOf( 'Template:TabbedWindowBegin' ) === 0
) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
// Expensive checks (only on the subset of supported pages)
$tabbedWindows = $content.find( '.mw-gadget-tabbedwindow' );
if ( $tabbedWindows.length > 0 ) {
// Viewing an API subject page with tabs on it, let's make them nice!
mw.loader.using( [ 'oojs-ui-widgets' ] ).then( function () {
makeTabWindow( $tabbedWindows );
} );
}
} );
}
}() );
</syntaxhighlight>
{{TabbedWindowEnd}}
== 使用 ==
<pre>
{{TabbedWindowBegin}}
=== Python ===
<syntaxhighlight lang="Python" line='line'>
code
</syntaxhighlight>
=== JavaScript ===
<syntaxhighlight lang="javascript" line='line'>
code
</syntaxhighlight>
{{TabbedWindowEnd}}
</pre>
[[分类:模板]]
[[分类:仓库]]
999bda1065b9dea297cab4189de3c730c5307e2f
258
255
2022-11-20T07:47:58Z
Istudylinux
1
wikitext
text/x-wiki
== 来源 ==
https://www.mediawiki.org/wiki/Template:TabbedWindowBegin
== 依赖 ==
* 扩展:Gadgets(非必须)
== 移植事项 ==
# 如果你没有使用Gadgets这个扩展,则需要将<code>MediaWiki:Gadget-tabbedwindow.js</code>里的源码复制到<code>Mediawiki:common.js</code>里面,就行了
# 如果你使用了自定义的命名空间,需要根据[[命名空间]]对应的名称在[[##MediaWiki:Gadget-tabbedwindow.js]]里的110行添加对应的命名空间名称的支持,中英文都可。比如<pre>supportedNamespaces = [ 'API', 'Help', 'Manual', '模板', '' ],</pre>
== 源码 ==
{{TabbedWindowBegin}}
=== 页面名称 ===
* 模板:TabbedWindowBegin
* 模板:TabbedWindowEnd
* MediaWiki:Gadget-tabbedwindow.js
=== 模板:TabbedWindowBegin ===
<syntaxhighlight lang="html" line="true">
<includeonly><div class="mw-gadget-tabbedwindow"></includeonly>
</syntaxhighlight>
=== 模板:TabbedWindowEnd ===
<syntaxhighlight lang="html" line="true">
<includeonly></div><includeonly>
</syntaxhighlight>
=== MediaWiki:Gadget-tabbedwindow.js ===
<syntaxhighlight lang="JavaScript" line="true">
/**
*
* tabbedWindow.js
*
* It embeds an OOUI tabbed window on all pages in the API namespace on MediaWiki.org.
* Each tab of the window contains sample code in a programming language (PHP, Javascript, Python, etc.)
* demonstrating the use of the MediaWiki Action API.
*
* @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
* @licstart The following is the entire license notice for the JavaScript code in this gadget.
*
* Copyright (C) 2019 Jay Prakash <https://meta.wikimedia.org/wiki/User:Jayprakash12345> and contributors
*
* The JavaScript/Gadget code in this page is free software: you can
* redistribute it and/or modify it under the terms of the GNU
* General Public License (GNU GPL) as published by the Free Software
* Foundation, either version 3 of the License, or (at your option)
* any later version. The code is distributed WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
*
* As additional permission under GNU GPL version 3 section 7, you
* may distribute non-source (e.g., minimized or compacted) forms of
* that code without the copy of the GNU GPL normally required by
* section 4, provided you include this license notice and a URL
* through which recipients can access the Corresponding Source.
*
* @licend The above is the entire license notice for the JavaScript/Gadget code in this gadget.
*/
( function () {
'use strict';
function trySettingTab( indexLayout, hash ) {
var possiblePanelName = hash.slice( 1 );
var possiblePanel = possiblePanelName && indexLayout.getTabPanel( possiblePanelName );
if ( possiblePanel ) {
indexLayout.setTabPanel( possiblePanelName );
indexLayout.scrollElementIntoView();
}
}
/**
* This function fetches sample code in different programming languages
* from the sub-sections of the section "Sample Code" and places
* them into an OOUI tabbed window.
*
* @param {jQuery} $tabbedWindows
*/
function makeTabWindow( $tabbedWindows ) {
var tabs = [];
$tabbedWindows.each( function () {
var panelLayout,
indexLayout = new OO.ui.IndexLayout( {
expanded: false
} );
$( this ).find( 'h3, h4, h5, h6' ).each( function () {
$( this ).find( '.mw-editsection' ).remove();
var id = $( this ).find( 'span[class=mw-headline]' ).attr( 'id' );
var $content = $( this ).nextUntil( 'h3, h4, h5, h6' );
var tabPanel = new OO.ui.TabPanelLayout( id, {
expanded: false,
label: $( this ).text(),
// Attach the original DOM elements directly by reference.
// This means they move directly in memory instead of getting copied/serialized/parsed as HTML.
// If we didn't move them, but instead copied and re-parsed HTML, then it would disconnect events
// and other live references from gadgets and extensions, which breaks sorting features, responsive gallery, etc.
$content: $content
} );
tabPanel.$element.css( 'padding', '0.5em' );
tabs.push( tabPanel );
} );
indexLayout.addTabPanels( tabs );
tabs = [];
panelLayout = new OO.ui.PanelLayout( {
expanded: false,
framed: true,
content: [ indexLayout ]
} );
$( this ).empty().append( panelLayout.$element );
// Select and scroll to any initially linked item in the address
trySettingTab( indexLayout, location.hash );
// Keep address bar updated with sharable link (also makes forward/backward browser navigation work)
if ( history.replaceState ) {
indexLayout.on( 'set', function ( tabPanel ) {
history.replaceState( null, document.title, '#' + tabPanel.getName() );
} );
}
// Support anchor links on the same page (from table of Contents, or [[#Section]] links)
window.addEventListener( 'hashchange', function () {
trySettingTab( indexLayout, location.hash );
} );
} );
}
// Quick check (dependency-free, this is executed for all pages/actions/namespaces)
var $tabbedWindows,
supportedNamespaces = [ 'API', 'Help', 'Manual', '' ],
action = mw.config.get( 'wgAction' ),
namespace = mw.config.get( 'wgCanonicalNamespace' );
if (
supportedNamespaces.indexOf( namespace ) !== -1 ||
mw.config.get( 'wgPageName' ).indexOf( 'Template:TabbedWindowBegin' ) === 0
) {
mw.hook( 'wikipage.content' ).add( function ( $content ) {
// Expensive checks (only on the subset of supported pages)
$tabbedWindows = $content.find( '.mw-gadget-tabbedwindow' );
if ( $tabbedWindows.length > 0 ) {
// Viewing an API subject page with tabs on it, let's make them nice!
mw.loader.using( [ 'oojs-ui-widgets' ] ).then( function () {
makeTabWindow( $tabbedWindows );
} );
}
} );
}
}() );
</syntaxhighlight>
{{TabbedWindowEnd}}
== 使用 ==
;源码
<pre>
{{TabbedWindowBegin}}
=== Python ===
<syntaxhighlight lang="Python" line='line'>
code
</syntaxhighlight>
=== JavaScript ===
<syntaxhighlight lang="javascript" line='line'>
code
</syntaxhighlight>
{{TabbedWindowEnd}}
</pre>
;效果
{{TabbedWindowBegin}}
=== Python ===
<syntaxhighlight lang="Python" line='line'>
code
</syntaxhighlight>
=== JavaScript ===
<syntaxhighlight lang="javascript" line='line'>
code
</syntaxhighlight>
{{TabbedWindowEnd}}
== 文档 ==
见[[{{FULLPAGENAME}}/doc]]
[[分类:模板]]
[[分类:仓库]]
d19de3e7bc4f38342c212a340c50967ff399213e
模板6:Tabber窗口切换/doc
3006
123
256
2022-11-20T07:41:18Z
Istudylinux
1
创建页面,内容为“This template is used, together with 模板:TabbedWindowEnd, to create the a tabbed window interface in documentation, e.g. for code snippets in multiple programming languages. The tabs will be created from the level 3 headings between the start/end templates. The template relies on [[MediaWiki:Gadget-tabbedwindow.js|Gadget-tabbedwindow.js]]. It can be used in the API, Help, Manual and the main namespace. == Example == <pre> {{TabbedWindowBegin}} === Python =…”
wikitext
text/x-wiki
This template is used, together with 模板:TabbedWindowEnd, to create the a tabbed window interface in documentation, e.g. for code snippets in multiple programming languages. The tabs will be created from the level 3 headings between the start/end templates.
The template relies on [[MediaWiki:Gadget-tabbedwindow.js|Gadget-tabbedwindow.js]]. It can be used in the API, Help, Manual and the main namespace.
== Example ==
<pre>
{{TabbedWindowBegin}}
=== Python ===
<syntaxhighlight lang="Python" line='line'>
code
</syntaxhighlight>
=== JavaScript ===
<syntaxhighlight lang="javascript" line='line'>
code
</syntaxhighlight>
{{TabbedWindowEnd}}
</pre>
{{TabbedWindowBegin}}
=== Python ===
<syntaxhighlight lang="Python" line='line'>
code
</syntaxhighlight>
=== JavaScript ===
<syntaxhighlight lang="javascript" line='line'>
code
</syntaxhighlight>
{{TabbedWindowEnd}}
63b7eb14c41bff7cd8ea32060fdc089b17549225
模板:TabbedWindowEnd
10
118
257
238
2022-11-20T07:45:13Z
Istudylinux
1
wikitext
text/x-wiki
<includeonly></div></includeonly>
9da94f9b3e4deaf35c05980b82f5e57532a67e5d
文件:新芭网 logo.png
6
124
259
2022-11-23T11:47:50Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:新芭网
3000
125
260
2022-11-23T11:48:34Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=新芭网_logo.png |网站名称=新芭网 |网站网址=https://www.sin80.com |一级分类=音乐 |二级分类=古典音乐,民族音乐 |使用软件= |网站性质= |用户权限= |内容许可= }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=新芭网_logo.png
|网站名称=新芭网
|网站网址=https://www.sin80.com
|一级分类=音乐
|二级分类=古典音乐,民族音乐
|使用软件=
|网站性质=
|用户权限=
|内容许可=
}}
b5377c650df668cbb9e6a9123c3adaa162e1d61e
网站收录
0
91
261
205
2022-11-23T11:58:13Z
Istudylinux
1
wikitext
text/x-wiki
如无特殊说明,'''本网站'''皆指当前域名为mw.istudylinux.cn的Mediawiki网站。
== 网站页面命名 ==
在对网站收录时,通常是针对该网站出具的名称,直接在本站上面建立对应的文章条目,通常,只要是收录网站,前面都必须使用命名空间<code>网站</code>,比如<code>网站:某某百科</code>,比如[[网站:金属百科]]条目
这里可能会有以下几种情况:
# 与本网站的条目名称重复
# 要收录的网站名称不清楚
=== 重名 ===
第1种情况通常出现为游戏wiki,一般游戏受众范围广,所以大到公司,组织,小到个人都极有可能因为热爱而单独为其创建对应的wiki战点,会导致互联网上有多个同一款游戏的wiki
解决方案:在游戏名称后面跟上对应的标志,使用“-”隔开。
比如现在有游戏'''王者荣耀''',假设有以下几种情况:
{| class="wikitable"
|-
! 页面标题 !! 备注
|-
| 网站:王者荣耀 || 有多个后,这个页面用于归纳总结所有关于王者荣耀游戏的wiki条目页面
|-
| 网站:王者荣耀/BWIKI || 说明该网站是建立在BWIKI的维基农场里面
|-
| 网站:王者荣耀/灰机wiki || 说明该网站是建立在灰机wiki的维基农场里面
|-
| 网站:王者荣耀/istudylinux || 说明该网站是个人或者其他公司建立,且域名是istudylinux
|}
'''但尽量少收录游戏,毕竟流量不差对吧!!'''
=== 名称不清楚 ===
针对第2种情况,主要原因可能受限于知识局限性,或者要收录的网站写的也不太清楚,这时可以询问网站建立者或者反馈给大家一起讨论。
最好是询问网站交流群。如果暂时获取不到对应的信息,可先搁置对该网站的收录。
== 内容说明 ==
收录完成网站后,需要介绍该网站的一个基本信息,这里需要在该网站页面上建立对应的内容。使用以下的模板填写网站对应的信息。
* [[模板:infobox_site]]
相关的内容格式,填写要求也参加该模板页面的帮助文档。
[[分类:规则]]
163c3725250a759de8c0b176ecfe2240bedeae23
模板:问候语
10
126
262
2022-11-24T06:05:58Z
Istudylinux
1
创建页面,内容为“欢迎大家一起学习Mediawiki!”
wikitext
text/x-wiki
欢迎大家一起学习Mediawiki!
81e8e23eea7f77a4d569519a5755441ae7a7f96a
模板:隐式传递
10
127
263
2022-11-24T06:06:38Z
Istudylinux
1
创建页面,内容为“欢迎你,来自{{{1}}}的{{{2}}},和我们一起学习MediaWiki!”
wikitext
text/x-wiki
欢迎你,来自{{{1}}}的{{{2}}},和我们一起学习MediaWiki!
9d553bb4f39f8aa7af758e916a2348d8a82d23fe
模板:编号传递
10
128
264
2022-11-24T06:07:44Z
Istudylinux
1
重定向页面至[[模板:隐式传递]]
wikitext
text/x-wiki
#重定向 [[模板:隐式传递]]
9c6a138b68b75e9187ec6b9e3fd497155aa201f4
模板:名称传递
10
129
265
2022-11-24T06:08:30Z
Istudylinux
1
创建页面,内容为“欢迎你,来自{{{国家}}}的{{{姓名}}},和我们一起学习MediaWiki!”
wikitext
text/x-wiki
欢迎你,来自{{{国家}}}的{{{姓名}}},和我们一起学习MediaWiki!
04a4d2a7bbf8c30e0df9b52299319a373bdc5a3d
模板入门
0
130
266
2022-11-24T06:14:05Z
Istudylinux
1
创建页面,内容为“ 模板是将一个事物的结构规律予以固定化、标准化的成果,它体现的是结构形式的标准化。<ref>[https://baike.baidu.com/item/%E6%A8%A1%E6%9D%BF/2890455?fr=aladdin 百度模板定义]</ref> PPT模板,Word模板,论文模板,简历模板。同理,Mediawiki的'''模板(Template)'''也是类似的功能。它们都是提供固有的内容形式,使用的时候,仅需要修改对应的内容或者添加对应的内容…”
wikitext
text/x-wiki
模板是将一个事物的结构规律予以固定化、标准化的成果,它体现的是结构形式的标准化。<ref>[https://baike.baidu.com/item/%E6%A8%A1%E6%9D%BF/2890455?fr=aladdin 百度模板定义]</ref>
PPT模板,Word模板,论文模板,简历模板。同理,Mediawiki的'''模板(Template)'''也是类似的功能。它们都是提供固有的内容形式,使用的时候,仅需要修改对应的内容或者添加对应的内容即可。
几乎99.9%的MW网站都使用模板。
<blockquote>“一发不可牵,牵之动全身。” --清·龚自珍《自春徂秋偶有所感触》</blockquote>我也不知道为什么,就是想把这句话放在这里。
<div style="float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;">__TOC__</div>
== 创建模板 ==
前面的文章[[命名空间#内建命名空间|命名空间]]列出了18种MediaWiki内建的名称,模板也包含在其中。因此,该模板功能也使用了命名空间的相关功能。
创建模板很简单,和创建页面一样。
* 在WIKI网站的URL栏输入<code>模板:问候语</code>或者<code>Template:问候语</code>,中英文都可。
* 然后,页面存在就点击更改,不存在就创建,然后在里面写上wikitext内容
* 点击保存,比如这里的例子是写成如下内容:
:<code>欢迎大家一起学习Mediawiki!</code>
这样,一个最简单的模板就完成了!
== 使用模板 ==
使用模板有如下方法,但是都是使用的<nowiki>“</nowiki>'''{{ }}'''<nowiki>”</nowiki>将其包含起来,现在咱们仅需要关注第一种方式,如无特殊说明,本文后面都是用第一种方式做例。
# <code><nowiki>{{模板名称}}或者{{模板:模板名称}}或者{{Template:模板名称}},结果都是一样的</nowiki></code>
# <code><nowiki>{{subst:模板名称}}</nowiki></code>
# <code><nowiki>{{safesubst:模板名称}}</nowiki></code>
# <code><nowiki>{{msgnw:模板名称}}</nowiki></code>
使用模板,通常是叫'''嵌入(transclude)''',不仅模板,其他网站上几乎所有页面都可以嵌入。
{| class="wikitable"
|+ 使用模板
|-
! 调用模板语法 !! 调用后的结果 !! 备注
|-
| '''<nowiki>{{问候语}}</nowiki>''' || {{问候语}} || 结果都一样,所以只要不嫌麻烦,都是用这种方式调用
|-
| '''<nowiki>{{模板:问候语}}</nowiki>''' || {{模板:问候语}} || 结果都一样
|-
| '''<nowiki>{{Template:问候语}}</nowiki>''' || {{Template:问候语}} || 结果都一样
|}
如果当你不满意这句话的时候,你就可以更改'''''模板:问候语'''''里面的内容,这样,调用该模板的所有页面都会相应的变成你最后更改的内容。
== 参数 ==
为丰富嵌入包含机制,当一个模板被嵌入时,MediaWiki允许对这个模板传递参数。由于参数的作用,模板可以提供不同的内容,拥有不同的行为。<ref>[https://www.mediawiki.org/wiki/Help:Templates/zh#参数 MW模板-参数]</ref>
如果大家学过编程,说到函数应该就大概了解了。没有学过的,想想PPT模板,Word模板也差不多的意思。
=== 隐式传递 ===
;<nowiki>模板:隐式传递</nowiki> 内容
<pre>
欢迎你,来自{{{1}}}的{{{2}}},和我们一起学习MediaWiki!
</pre>
;调用
<pre>{{隐式传递|中国|张三}}</pre>
这种形式里,中国占用的是第一个位置({{{1}}}),张三是第二个位置({{{2}}})。这句话的意思就是,给'''模板:隐式传递'''传递
* 参数1='''中国''',其中参数1也就是{{{1}}}
* 参数2='''张三''',其中参数2也就是{{{2}}}
{| class="wikitable"
|+ 隐式传递
|-
! 调用模板语法 !! 调用后的结果 !! 备注
|-
| '''<nowiki>{{隐式传递|中国|张三}}</nowiki>''' || {{隐式传递|中国|张三}} || {{{1}}}=中国,{{{2}}}=张三
|-
| '''<nowiki>{{隐式传递|张三|中国}}</nowiki>''' || {{隐式传递|张三|中国}} || {{{1}}}=张三,{{{2}}}=中国
|-
| '''<nowiki>{{隐式传递|俄罗斯|马雅可夫斯基·铁柱}}</nowiki>''' || {{隐式传递|俄罗斯|马雅可夫斯基·铁柱}} || 其他例子
|-
| colspan='3' | 可以看到,需要严格遵守传递顺序。看花了没?
|}
=== 编号传递 ===
;'''<nowiki>模板:编号传递</nowiki>''',内容和隐式传递一样,'''唯一区别是调用'''
<pre>
欢迎你,来自{{{1}}}的{{{2}}},和我们一起学习MediaWiki!
</pre>
;调用
<pre>{{编号传递|2=张三|1=中国}}</pre>
这句话的意思就是,给'''模板:编号传递'''传递
* {{{2}}}='''张三''',第二个参数
* {{{1}}}='''中国''',第一个参数
* 无论怎么摆放位置结果都不变,只要'''1'''给国家,'''2'''给姓名
{| class="wikitable"
|+ 编号传递
|-
! 调用模板语法 !! 调用后的结果 !! 备注
|-
| '''<nowiki>{{编号传递|1=中国|2=张三}}</nowiki>''' || {{编号传递|1=中国|2=张三}} || 结果一样
|-
| '''<nowiki>{{编号传递|2=张三|1=中国}}</nowiki>''' || {{编号传递|2=张三|1=中国}} || 结果一样
|-
| '''<nowiki>{{编号传递|2=马雅可夫斯基·铁柱|1=俄罗斯}}</nowiki>''' || {{编号传递|2=马雅可夫斯基·铁柱|1=俄罗斯}} || 其他例子
|-
| colspan='3' | 可以看到,'''不需要'''严格遵守传递顺序,看花了没?
|}
=== 名称传递 ===
;<nowiki>模板:名称传递</nowiki> 内容
<pre>
欢迎你,来自{{{国家}}}的{{{姓名}}},和我们一起学习MediaWiki!
</pre>
;调用
<pre>{{名称传递|姓名=张三|国家=中国}}</pre>
这句话的意思就是,给'''模板:名称传递'''传递
* 姓名='''张三'''
* 国家='''中国'''
* 随便你怎么摆放位置
{| class="wikitable"
|+ 名称传递
|-
! 调用模板语法 !! 调用后的结果 !! 备注
|-
| '''<nowiki>{{名称传递|国家=中国|姓名=张三}}</nowiki>''' || {{名称传递|国家=中国|姓名=张三}} || 结果一样
|-
| '''<nowiki>{{名称传递|姓名=张三|国家=中国}}</nowiki>''' || {{名称传递|姓名=张三|国家=中国}} || 结果一样
|-
| '''<nowiki>{{名称传递|姓名=马雅可夫斯基·铁柱|国家=俄罗斯}}</nowiki>''' || {{名称传递|姓名=马雅可夫斯基·铁柱|国家=俄罗斯}} || 其他例子
|-
| colspan='3' | 可以看到,'''不需要'''严格遵守传递顺序,没看花了吧!
|}
=== 调用格式 ===
以下格式都可以使用。
<pre>
{{名称传递|国家=中国|姓名=张三}}
或者
{{名称传递
|国家=中国
|姓名=张三
}}
{{编号传递|1=中国|2=张三}}
或
{{编号传递
|1=中国
|2=张三
}}
</pre>
'''上面的1,2,国家我们姑且叫它变量吧!然后使用变量或者调用就添加{{{1}}},{{{2}}},{{{国家}}}这种方式!'''
== 需要注意的 ==
=== 空值 ===
;调用
:<pre>{{名称传递|国家=中国|姓名=}}或者{{名称传递|国家=中国}}</pre>
;结果
:{{名称传递|国家=中国}}
;解决方式
:见[[模板#默认值]]
=== 无用值 ===
;调用
:<pre>{{名称传递|国家=中国|名称=张三}}</pre>
;结果
:{{名称传递|国家=中国|名称=张三}}
;解决方式
:你写错了改呗!或者设置默认值。
=== 默认值 ===
针对上面的两种情况,MW有一种语法可以应对。
;语法
:<code><nowiki>{{{变量|提示语句}}}</nowiki></code>
;进行更改
:在'''模板:名称传递'''里面写成如下文本:
<pre>
欢迎你,来自{{{国家|未知地区}}}的'''{{{姓名|匿名人士}}}''',和我们一起学习MediaWiki!
</pre>
{| class="wikitable"
|+ 默认值
|-
! 调用模板语法 !! 调用后的结果 !! 备注
|-
| '''<nowiki>{{名称传递|国家=中国}}</nowiki>''' || 欢迎你,来自'''中国'''的'''匿名人士''',和我们一起学习MediaWiki! || 只写了国家没写姓名
|-
| '''<nowiki>{{名称传递}}</nowiki>''' || 欢迎你,来自'''未知地区'''的'''匿名人士''',和我们一起学习MediaWiki! || 两个都没写
|-
| '''<nowiki>{{名称传递|姓名=张三}}</nowiki>''' || 欢迎你,来自'''未知地区'''的'''张三''',和我们一起学习MediaWiki! || 没写国家
|}
== 参考 ==
<references />
[[分类:入门]]
2e296c2a43da509748f2ab9f88c102eb24d23e20
命名空间
0
131
267
2022-11-24T06:16:12Z
Istudylinux
1
创建页面,内容为“<div style="float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;">__TOC__</div> '''命名空间(Namespace)'''是一组目的近似的页面组合<ref name="MW手册命名空间">[https://www.mediawiki.org/wiki/Manual:Namespace/zh MW手册:命名空间]</ref>。 == 概述 == 在以Mediawiki软件为基础的网站上,你会时常看到 * '''[[特殊:版本]]''' * '''文件:MediaWiki-2020-logo.png''' * '''[[模板:首页]]''' 等样式的页…”
wikitext
text/x-wiki
<div style="float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;">__TOC__</div>
'''命名空间(Namespace)'''是一组目的近似的页面组合<ref name="MW手册命名空间">[https://www.mediawiki.org/wiki/Manual:Namespace/zh MW手册:命名空间]</ref>。
== 概述 ==
在以Mediawiki软件为基础的网站上,你会时常看到
* '''[[特殊:版本]]'''
* '''文件:MediaWiki-2020-logo.png'''
* '''[[模板:首页]]'''
等样式的页面标题。
以上就是以'''命名空间前缀''','''冒号'''分割,然后加上'''页面标题'''。主命名空间(main namespace)不需要前缀。<ref name="MW手册命名空间" />
如果你在网站搜索页面点击高级,你可以看到当前你网站的一些内建命名空间前缀有哪些,如果你没有[[命名空间#自定义命名空间|自定义添加]],该页面呈现的就是当前'''可搜索'''(可配置可不可搜索)的命名空间。<ref name="MW手册命名空间" />
== 内建命名空间 ==
MediaWiki拥有18个内建的命名空间:
* 16个“真实”命名空间(real namespace),代表实际存在的页面,编号为0到15,每个主题页面都有对应的讨论命名空间;
* 2个“虚拟”命名空间(virtual namespace),一个是动态生成的[[特殊:特殊页面|特殊页面]],另一个用作外部文件的快捷方式,编号分别为-1和-2。因为它们并不是表示数据库中存储的实际页面,所以不可以在这两个命名空间中创建或者删除页面,它们也没有相关联的讨论命名空间。<ref name="MW手册命名空间" />
* 下面的中文名称可从安装目录下的<code>languages/messages/MessagesZh.php</code>里面查看到
{| class="wikitable"
|+ 内建命名空间
|-
! 索引 !! 英文名称 !! 中文名称 !! 常量<ref>[https://www.mediawiki.org/wiki/Manual:Namespace_constants 命名空间常量列表]</ref> !! 用途
|-
| 0 || (Main) ||(主)|| NS_MAIN || “真实”条目内容
|-
| 1 || Talk || 讨论 || NS_MAIN_TALK || 主命名空间讨论页
|-
| 2 || User || 用户 || NS_USER || 用户页
|-
| 3 || User talk || 用户讨论 || NS_USER_TALK || 用户讨论页
|-
| 4 || Project || $1 || NS_PROJECT || 关于该wiki的信息
|-
| 5 || Project talk || $1讨论 || NS_PROJECT_TALK || 关于该wiki的信息讨论
|-
| 6 || File|| 文件 || NS_FILE || 媒体描述页面
|-
| 7 || File talk|| 文件讨论 || NS_FILE_TALK || 媒体描述页讨论
|-
| 8 || MediaWiki || MediaWiki || NS_MEDIAWIKI || 网站界面定制
|-
| 9 || MediaWiki talk || MediaWiki讨论 || NS_MEDIAWIKI_TALK || 网站界面定制讨论
|-
| 10 || Template|| 模板 || NS_TEMPLATE || 模板页面
|-
| 11 || Template talk || 模板讨论 || NS_TEMPLATE_TALK || 模板页讨论页
|-
| 12 || Help|| 帮助 || NS_HELP || 帮助页面
|-
| 13 || Help talk || 帮助讨论 || NS_HELP_TALK || 帮助页讨论
|-
| 14 || Category|| 分类 || NS_CATEGORY || 分类描述页面
|-
| 15 || Category talk || 分类讨论 || NS_CATEGORY_TALK || 分类描述页讨论
|-
| colspan='5'|
|-
| -1 || Special|| 特殊 || || 保留特殊页面
|-
| -2 || Media|| 媒体文件 || || 直接链接到媒体文件的别名
|}
从上面的表可以看出:
* 除了索引为负数的两个特殊前缀,其余的都带有自己的讨论页
* 0,2,4,6等'''主要命名空间'''都是偶数,讨论页都是奇数
* 常量(PHP代码里面使用)都是以'''''NS_英文名称''''',而讨论页则直接在后面加'''''NS_英文名称_TALK'''''
* 索引为4,5中的project为你当前网站的名称,在LocalSettings.php里就是下面代码。你网站最下面的关于xxxx就是该命名空间下的页面,[https://www.mediawiki.org/wiki/Manual:$wgMetaNamespace/zh $wgMetaNamespace]<ref>https://www.mediawiki.org/wiki/Manual:$wgMetaNamespace/zh</ref>可以为任意值,等号后面需要使用单引号。
<pre>
$wgSitename = "istudylinux";
$wgMetaNamespace = 'Istudylinux';
</pre>
== 自定义命名空间 ==
参考文章<ref name='自定义命名空间'>https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces/zh</ref>。
=== 作用,好处 ===
* 不希望有的内容出现在搜索框
* 可以配置内容权限,比如仅将该命名空间给注册用户编写,见[[命名空间#设置权限]]
* 扩展开发需要<ref>https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces/zh#为什么要自定义命名空间</ref>
=== 配置 ===
'''''注意事项:'''''
* 在软件安装后就及时添加
* 尽量使用下划线连接(_),不要使用空格
* 主命名是偶数,然后讨论加1,不要是3000,然后3003
* 3000到4999<ref name='自定义命名空间' />是留给网站维护者进行命名空间使用,请遵守该规则
* 本文以<code>NS_SITE</code>和<code>NS_SITE_TALK</code>为例
<pre lang="php" line="true" highlight="">
# 旁白:为我添加的命名空间定义常量。
define("NS_SITE", 3000); # 旁白:这必须是偶数
define("NS_SITE_TALK", 3001); # 旁白:这必须是下一个奇整数
# 旁白:添加命名空间。
$wgExtraNamespaces[NS_SITE] = "网站";
$wgExtraNamespaces[NS_SITE_TALK] = "网站讨论"; //旁白:请注意命名空间名称中的下划线
</pre>
添加上面的代码就可以在搜索框看到对应的命名空间了,下面的是一些Plus功能。
=== 添加别名 ===
<pre lang="php" line="true" highlight="">
# 旁白:添加别名,通常是多语言使用,注意下划线;别名可以随便取无所谓,只要懂意思
$wgNamespaceAliases['Site'] = NS_SITE;
$wgNamespaceAliases['Site_talk'] = NS_SITE_TALK;
# 旁白:添加许多别名,多的可以使用数组方式
$wgNamespaceAliases = [
'Site' => NS_SITE,
'MySite' => NS_SITE,
'Site_talk' => NS_SITE_TALK,
'MySite_talk' => NS_SITE_TALK
];
</pre>
* 假如有个页面<code>网站:谷歌</code>,<code>Site:谷歌</code>和<code>MySite:谷歌</code>最后都自动跳转到<code>网站:谷歌</code>这个页面
* 该方式也可以重命名命名空间,只不过最后显示的仍旧是你前面<code>$wgExtraNamespaces</code>定义的名称
=== 重命名 ===
如果不满意'''网站'''这个命名空间名称,可更改,只要保留ID号(3000,30001)和常量NS_SITE<ref name='自定义命名空间' />
<pre lang="php" line="true" highlight="">
# 旁白:为我添加的命名空间定义常量。
define("NS_SITE", 3000); # 旁白:这必须是偶数
define("NS_SITE_TALK", 3001); # 旁白:这必须是下一个奇整数
# 旁白:重命名 命名空间。
# $wgExtraNamespaces[NS_SITE] = "网站"; # 删掉或者注释掉
$wgExtraNamespaces[NS_SITE] = "小网站";
</pre>
=== 设置权限 ===
<pre lang="php" line="true" highlight="">
$wgNamespaceProtection[NS_SITE] = array( 'editSite' ); // permission "editfoo" required to edit the foo namespace
$wgGroupPermissions['user']['editSite'] = true; # 仅用户组的成员可编辑该命名空间下的内容
</pre>
=== 其他常用的配置 ===
参考页面<ref>https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages</ref><ref>https://www.mediawiki.org/wiki/Manual:$wgNamespacesToBeSearchedDefault</ref>
<pre lang="php" line="true" highlight="">
# 允许创建子页面,默认false
$wgNamespacesWithSubpages[NS_SITE] = true;
</pre>
=== 命名空间设置样式 ===
在[[Mediawiki:common.css]]里面添加对应的CSS样式代(需要前端功力):<ref name='自定义命名空间' />
<pre lang="php" line="true" highlight="">
.ns-3000 #content, .ns-3001 #content { background-color: #f3f3ff; }
.ns-3000 div.thumb, .ns-3001 div.thumb { border-color: #f3f3ff; }
</pre>
=== 处理存在的页面 ===
[https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces/zh#处理已存在的页面 参考官网]
=== 一些已经被使用的索引 ===
该[https://www.mediawiki.org/wiki/Extension_default_namespaces 链接]<ref group="resource_link">[https://www.mediawiki.org/wiki/Extension_default_namespaces 命名空间索引号大全]</ref>包含MW内建的18个命名空间索引号,还有其他的已经被extensions所占用的索引号,为了防止冲突,在开发扩展或者自定义命名空间时,先检查一下。
== 资料 ==
<references group="resource_link" />
<references />
[[Category:入门]]
754f1c81ab5976fa89edca009d8eaca40b95bf70
268
267
2022-11-24T06:17:34Z
Istudylinux
1
wikitext
text/x-wiki
<div style="float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;">__TOC__</div>
'''命名空间(Namespace)'''是一组目的近似的页面组合<ref name="MW手册命名空间">[https://www.mediawiki.org/wiki/Manual:Namespace/zh MW手册:命名空间]</ref>。
== 概述 ==
在以Mediawiki软件为基础的网站上,你会时常看到
* '''[[特殊:版本]]'''
* '''文件:MediaWiki-2020-logo.png'''
* '''[[模板:首页]]'''
等样式的页面标题。
以上就是以'''命名空间前缀''','''冒号'''分割,然后加上'''页面标题'''。主命名空间(main namespace)不需要前缀。<ref name="MW手册命名空间" />
如果你在网站搜索页面点击高级,你可以看到当前你网站的一些内建命名空间前缀有哪些,如果你没有[[命名空间#自定义命名空间|自定义命名空间]],该页面呈现的就是当前'''可搜索'''(可配置可不可搜索)的命名空间。<ref name="MW手册命名空间" />
== 内建命名空间 ==
MediaWiki拥有18个内建的命名空间:
* 16个“真实”命名空间(real namespace),代表实际存在的页面,编号为0到15,每个主题页面都有对应的讨论命名空间;
* 2个“虚拟”命名空间(virtual namespace),一个是动态生成的[[特殊:特殊页面|特殊页面]],另一个用作外部文件的快捷方式,编号分别为-1和-2。因为它们并不是表示数据库中存储的实际页面,所以不可以在这两个命名空间中创建或者删除页面,它们也没有相关联的讨论命名空间。<ref name="MW手册命名空间" />
* 下面的中文名称可从安装目录下的<code>languages/messages/MessagesZh.php</code>里面查看到
{| class="wikitable"
|+ 内建命名空间
|-
! 索引 !! 英文名称 !! 中文名称 !! 常量<ref>[https://www.mediawiki.org/wiki/Manual:Namespace_constants 命名空间常量列表]</ref> !! 用途
|-
| 0 || (Main) ||(主)|| NS_MAIN || “真实”条目内容
|-
| 1 || Talk || 讨论 || NS_MAIN_TALK || 主命名空间讨论页
|-
| 2 || User || 用户 || NS_USER || 用户页
|-
| 3 || User talk || 用户讨论 || NS_USER_TALK || 用户讨论页
|-
| 4 || Project || $1 || NS_PROJECT || 关于该wiki的信息
|-
| 5 || Project talk || $1讨论 || NS_PROJECT_TALK || 关于该wiki的信息讨论
|-
| 6 || File|| 文件 || NS_FILE || 媒体描述页面
|-
| 7 || File talk|| 文件讨论 || NS_FILE_TALK || 媒体描述页讨论
|-
| 8 || MediaWiki || MediaWiki || NS_MEDIAWIKI || 网站界面定制
|-
| 9 || MediaWiki talk || MediaWiki讨论 || NS_MEDIAWIKI_TALK || 网站界面定制讨论
|-
| 10 || Template|| 模板 || NS_TEMPLATE || 模板页面
|-
| 11 || Template talk || 模板讨论 || NS_TEMPLATE_TALK || 模板页讨论页
|-
| 12 || Help|| 帮助 || NS_HELP || 帮助页面
|-
| 13 || Help talk || 帮助讨论 || NS_HELP_TALK || 帮助页讨论
|-
| 14 || Category|| 分类 || NS_CATEGORY || 分类描述页面
|-
| 15 || Category talk || 分类讨论 || NS_CATEGORY_TALK || 分类描述页讨论
|-
| colspan='5'|
|-
| -1 || Special|| 特殊 || || 保留特殊页面
|-
| -2 || Media|| 媒体文件 || || 直接链接到媒体文件的别名
|}
从上面的表可以看出:
* 除了索引为负数的两个特殊前缀,其余的都带有自己的讨论页
* 0,2,4,6等'''主要命名空间'''都是偶数,讨论页都是奇数
* 常量(PHP代码里面使用)都是以'''''NS_英文名称''''',而讨论页则直接在后面加'''''NS_英文名称_TALK'''''
* 索引为4,5中的project为你当前网站的名称,在LocalSettings.php里就是下面代码。你网站最下面的关于xxxx就是该命名空间下的页面,[https://www.mediawiki.org/wiki/Manual:$wgMetaNamespace/zh $wgMetaNamespace]<ref>https://www.mediawiki.org/wiki/Manual:$wgMetaNamespace/zh</ref>可以为任意值,等号后面需要使用单引号。
<pre>
$wgSitename = "istudylinux";
$wgMetaNamespace = 'Istudylinux';
</pre>
== 自定义命名空间 ==
参考文章<ref name='自定义命名空间'>https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces/zh</ref>。
=== 作用,好处 ===
* 不希望有的内容出现在搜索框
* 可以配置内容权限,比如仅将该命名空间给注册用户编写,见[[命名空间#设置权限]]
* 扩展开发需要<ref>https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces/zh#为什么要自定义命名空间</ref>
=== 配置 ===
'''''注意事项:'''''
* 在软件安装后就及时添加
* 尽量使用下划线连接(_),不要使用空格
* 主命名是偶数,然后讨论加1,不要是3000,然后3003
* 3000到4999<ref name='自定义命名空间' />是留给网站维护者进行命名空间使用,请遵守该规则
* 本文以<code>NS_SITE</code>和<code>NS_SITE_TALK</code>为例
<pre lang="php" line="true" highlight="">
# 旁白:为我添加的命名空间定义常量。
define("NS_SITE", 3000); # 旁白:这必须是偶数
define("NS_SITE_TALK", 3001); # 旁白:这必须是下一个奇整数
# 旁白:添加命名空间。
$wgExtraNamespaces[NS_SITE] = "网站";
$wgExtraNamespaces[NS_SITE_TALK] = "网站讨论"; //旁白:请注意命名空间名称中的下划线
</pre>
添加上面的代码就可以在搜索框看到对应的命名空间了,下面的是一些Plus功能。
=== 添加别名 ===
<pre lang="php" line="true" highlight="">
# 旁白:添加别名,通常是多语言使用,注意下划线;别名可以随便取无所谓,只要懂意思
$wgNamespaceAliases['Site'] = NS_SITE;
$wgNamespaceAliases['Site_talk'] = NS_SITE_TALK;
# 旁白:添加许多别名,多的可以使用数组方式
$wgNamespaceAliases = [
'Site' => NS_SITE,
'MySite' => NS_SITE,
'Site_talk' => NS_SITE_TALK,
'MySite_talk' => NS_SITE_TALK
];
</pre>
* 假如有个页面<code>网站:谷歌</code>,<code>Site:谷歌</code>和<code>MySite:谷歌</code>最后都自动跳转到<code>网站:谷歌</code>这个页面
* 该方式也可以重命名命名空间,只不过最后显示的仍旧是你前面<code>$wgExtraNamespaces</code>定义的名称
=== 重命名 ===
如果不满意'''网站'''这个命名空间名称,可更改,只要保留ID号(3000,30001)和常量NS_SITE<ref name='自定义命名空间' />
<pre lang="php" line="true" highlight="">
# 旁白:为我添加的命名空间定义常量。
define("NS_SITE", 3000); # 旁白:这必须是偶数
define("NS_SITE_TALK", 3001); # 旁白:这必须是下一个奇整数
# 旁白:重命名 命名空间。
# $wgExtraNamespaces[NS_SITE] = "网站"; # 删掉或者注释掉
$wgExtraNamespaces[NS_SITE] = "小网站";
</pre>
=== 设置权限 ===
<pre lang="php" line="true" highlight="">
$wgNamespaceProtection[NS_SITE] = array( 'editSite' ); // permission "editfoo" required to edit the foo namespace
$wgGroupPermissions['user']['editSite'] = true; # 仅用户组的成员可编辑该命名空间下的内容
</pre>
=== 其他常用的配置 ===
参考页面<ref>https://www.mediawiki.org/wiki/Manual:$wgNamespacesWithSubpages</ref><ref>https://www.mediawiki.org/wiki/Manual:$wgNamespacesToBeSearchedDefault</ref>
<pre lang="php" line="true" highlight="">
# 允许创建子页面,默认false
$wgNamespacesWithSubpages[NS_SITE] = true;
</pre>
=== 命名空间设置样式 ===
在[[Mediawiki:common.css]]里面添加对应的CSS样式代(需要前端功力):<ref name='自定义命名空间' />
<pre lang="php" line="true" highlight="">
.ns-3000 #content, .ns-3001 #content { background-color: #f3f3ff; }
.ns-3000 div.thumb, .ns-3001 div.thumb { border-color: #f3f3ff; }
</pre>
=== 处理存在的页面 ===
[https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces/zh#处理已存在的页面 参考官网]
=== 一些已经被使用的索引 ===
该[https://www.mediawiki.org/wiki/Extension_default_namespaces 链接]<ref group="resource_link">[https://www.mediawiki.org/wiki/Extension_default_namespaces 命名空间索引号大全]</ref>包含MW内建的18个命名空间索引号,还有其他的已经被extensions所占用的索引号,为了防止冲突,在开发扩展或者自定义命名空间时,先检查一下。
== 资料 ==
<references group="resource_link" />
<references />
[[Category:入门]]
e17b71f7cf4ecca52bf22d177f70eb8fac9c71cb
前端:Sitenotice
3002
132
269
2022-11-24T06:26:44Z
Istudylinux
1
创建页面,内容为“== 来源 == https://huoqibaike.club/wiki/Mediawiki:sitenotice == 依赖 == * 管理员权限或者编辑interface的权限 == 源码 == {{TabbedWindowBegin}} === 页面名称 === * Mediawiki:Sitenotice * Mediawiki:Common.js * Mediawiki:Common.css === Mediawiki:Sitenotice === <syntaxhighlight lang="html" line="true"> <div id="siteNoticeScroll"><ul> <li>我们目前有{{NUMBEROFARTICLES}}个页面,{{NUMBEROFUSERS}}个用户,{{NUMBEROFEDITS}}次编辑。</…”
wikitext
text/x-wiki
== 来源 ==
https://huoqibaike.club/wiki/Mediawiki:sitenotice
== 依赖 ==
* 管理员权限或者编辑interface的权限
== 源码 ==
{{TabbedWindowBegin}}
=== 页面名称 ===
* Mediawiki:Sitenotice
* Mediawiki:Common.js
* Mediawiki:Common.css
=== Mediawiki:Sitenotice ===
<syntaxhighlight lang="html" line="true">
<div id="siteNoticeScroll"><ul>
<li>我们目前有{{NUMBEROFARTICLES}}个页面,{{NUMBEROFUSERS}}个用户,{{NUMBEROFEDITS}}次编辑。</li>
<li>'''欢迎加入wiki百科[[Special:用户登录|<font color="3862AE">注册一个账号</font>]],一起参与编写吧!'''</li>
<li>如果编辑遇到不懂的问题可以加入QQ群:群聊号码 xxxxxx</li>
<li>[[file:MediaWiki-2020-logo.png|20px|link=]] 如果你想编辑页面,请详细阅读查看[[编辑者手册]]</li>
</ul></div>
</syntaxhighlight>
=== Mediawiki:Common.js ===
<syntaxhighlight lang="JavaScript" line="true">
/* sitenotice from huoqibaike.com*/
$(function () {
var self = $('#siteNoticeScroll');
if (!self[0]) return;
var ul = self.find('ul:first');
ul.width(self.width() * self.find('li').length).attr({
'data-left': 0,
'data-length': self.find('li').length
}).find('li').width(self.width());
window.setInterval(function () {
var dataset = ul[0].dataset,
oldLeft = +dataset.left;
ul.css('marginLeft', -(++oldLeft * self.width()) + 'px').delay(730).queue(function () {
dataset.left = oldLeft === +dataset.length - 1 ? -1 : oldLeft;
$(this).dequeue();
});
}, 5000);
$(window).on('resize', function () {
ul.width(self.width() * self.find('li').length).animate({
marginLeft: -((+ul[0].dataset.left === -1 ? 0 : +ul[0].dataset.left) * self.width()) + 'px'
}, 370);
});
});
</syntaxhighlight>
=== Mediawiki:Common.css ===
<syntaxhighlight lang="css" line="true">
/*通知栏*/
#siteNoticeScroll {
width: 100%;
height: 25px;
line-height: 25px;
overflow: hidden;
text-align: center;
margin-bottom: 0.25em;
}
#siteNoticeScroll ul {
height: 25px;
line-height: 25px;
-webkit-transition: margin .73s ease-in-out;
-moz-transition: margin .73s ease-in-out;
transition: margin .73s ease-in-out;
}
#siteNoticeScroll li {
height: 25px;
list-style: none;
float: left;
width: 100%;
}
</syntaxhighlight>
{{TabbedWindowEnd}}
[[分类:仓库]]
[[分类:前端]]
80b0c5c9bcebe2447c62259ccd78028a4d4308f1
271
269
2022-11-24T06:35:56Z
Istudylinux
1
wikitext
text/x-wiki
== 来源 ==
https://huoqibaike.club/wiki/Mediawiki:sitenotice,效果也可参见这个网站。
== 依赖 ==
* 管理员权限或者编辑interface的权限
== 源码 ==
{{TabbedWindowBegin}}
=== 页面名称 ===
* Mediawiki:Sitenotice
* Mediawiki:Common.js
* Mediawiki:Common.css
=== Mediawiki:Sitenotice ===
<syntaxhighlight lang="html" line="true">
<div id="siteNoticeScroll"><ul>
<li>我们目前有{{NUMBEROFARTICLES}}个页面,{{NUMBEROFUSERS}}个用户,{{NUMBEROFEDITS}}次编辑。</li>
<li>'''欢迎加入wiki百科[[Special:用户登录|<font color="3862AE">注册一个账号</font>]],一起参与编写吧!'''</li>
<li>如果编辑遇到不懂的问题可以加入QQ群:群聊号码 xxxxxx</li>
<li>[[file:MediaWiki-2020-logo.png|20px|link=]] 如果你想编辑页面,请详细阅读查看[[编辑者手册]]</li>
</ul></div>
</syntaxhighlight>
=== Mediawiki:Common.js ===
<syntaxhighlight lang="JavaScript" line="true">
/* sitenotice from huoqibaike.com*/
$(function () {
var self = $('#siteNoticeScroll');
if (!self[0]) return;
var ul = self.find('ul:first');
ul.width(self.width() * self.find('li').length).attr({
'data-left': 0,
'data-length': self.find('li').length
}).find('li').width(self.width());
window.setInterval(function () {
var dataset = ul[0].dataset,
oldLeft = +dataset.left;
ul.css('marginLeft', -(++oldLeft * self.width()) + 'px').delay(730).queue(function () {
dataset.left = oldLeft === +dataset.length - 1 ? -1 : oldLeft;
$(this).dequeue();
});
}, 5000);
$(window).on('resize', function () {
ul.width(self.width() * self.find('li').length).animate({
marginLeft: -((+ul[0].dataset.left === -1 ? 0 : +ul[0].dataset.left) * self.width()) + 'px'
}, 370);
});
});
</syntaxhighlight>
=== Mediawiki:Common.css ===
<syntaxhighlight lang="css" line="true">
/*通知栏*/
#siteNoticeScroll {
width: 100%;
height: 25px;
line-height: 25px;
overflow: hidden;
text-align: center;
margin-bottom: 0.25em;
}
#siteNoticeScroll ul {
height: 25px;
line-height: 25px;
-webkit-transition: margin .73s ease-in-out;
-moz-transition: margin .73s ease-in-out;
transition: margin .73s ease-in-out;
}
#siteNoticeScroll li {
height: 25px;
list-style: none;
float: left;
width: 100%;
}
</syntaxhighlight>
{{TabbedWindowEnd}}
[[分类:仓库]]
[[分类:前端]]
5c07ae7d044f0fb57d9ef6378080383b17b8cd22
272
271
2022-11-24T06:37:00Z
Istudylinux
1
wikitext
text/x-wiki
== 来源 ==
* https://huoqibaike.club/wiki/Mediawiki:sitenotice
* 效果也可参见这个网站。
== 依赖 ==
* 管理员权限或者编辑interface的权限
== 源码 ==
{{TabbedWindowBegin}}
=== 页面名称 ===
* Mediawiki:Sitenotice
* Mediawiki:Common.js
* Mediawiki:Common.css
=== Mediawiki:Sitenotice ===
<syntaxhighlight lang="html" line="true">
<div id="siteNoticeScroll"><ul>
<li>我们目前有{{NUMBEROFARTICLES}}个页面,{{NUMBEROFUSERS}}个用户,{{NUMBEROFEDITS}}次编辑。</li>
<li>'''欢迎加入wiki百科[[Special:用户登录|<font color="3862AE">注册一个账号</font>]],一起参与编写吧!'''</li>
<li>如果编辑遇到不懂的问题可以加入QQ群:群聊号码 xxxxxx</li>
<li>[[file:MediaWiki-2020-logo.png|20px|link=]] 如果你想编辑页面,请详细阅读查看[[编辑者手册]]</li>
</ul></div>
</syntaxhighlight>
=== Mediawiki:Common.js ===
<syntaxhighlight lang="JavaScript" line="true">
/* sitenotice from huoqibaike.com*/
$(function () {
var self = $('#siteNoticeScroll');
if (!self[0]) return;
var ul = self.find('ul:first');
ul.width(self.width() * self.find('li').length).attr({
'data-left': 0,
'data-length': self.find('li').length
}).find('li').width(self.width());
window.setInterval(function () {
var dataset = ul[0].dataset,
oldLeft = +dataset.left;
ul.css('marginLeft', -(++oldLeft * self.width()) + 'px').delay(730).queue(function () {
dataset.left = oldLeft === +dataset.length - 1 ? -1 : oldLeft;
$(this).dequeue();
});
}, 5000);
$(window).on('resize', function () {
ul.width(self.width() * self.find('li').length).animate({
marginLeft: -((+ul[0].dataset.left === -1 ? 0 : +ul[0].dataset.left) * self.width()) + 'px'
}, 370);
});
});
</syntaxhighlight>
=== Mediawiki:Common.css ===
<syntaxhighlight lang="css" line="true">
/*通知栏*/
#siteNoticeScroll {
width: 100%;
height: 25px;
line-height: 25px;
overflow: hidden;
text-align: center;
margin-bottom: 0.25em;
}
#siteNoticeScroll ul {
height: 25px;
line-height: 25px;
-webkit-transition: margin .73s ease-in-out;
-moz-transition: margin .73s ease-in-out;
transition: margin .73s ease-in-out;
}
#siteNoticeScroll li {
height: 25px;
list-style: none;
float: left;
width: 100%;
}
</syntaxhighlight>
{{TabbedWindowEnd}}
[[分类:仓库]]
[[分类:前端]]
cb4b97c22836916e79fca6be088acc3a736d115b
前端收录
0
133
270
2022-11-24T06:33:51Z
Istudylinux
1
创建页面,内容为“== 命名 == 命名使用<code>前端:功能名称</code>,通常是比较容易通过命名来看出该前端的一个使用场景,比如<code>前端:置顶按钮</code>。 == 内容 == ;页面内容通常包含以下几个方面: * 来源 * 依赖 * 源码 * 文档 === 来源 === '''这个很重要!'''除非该前端页面是由你亲自从零开始编写,否则从哪个网站摘录复制,从中修改都请注明。通常是直接链接到参考…”
wikitext
text/x-wiki
== 命名 ==
命名使用<code>前端:功能名称</code>,通常是比较容易通过命名来看出该前端的一个使用场景,比如<code>前端:置顶按钮</code>。
== 内容 ==
;页面内容通常包含以下几个方面:
* 来源
* 依赖
* 源码
* 文档
=== 来源 ===
'''这个很重要!'''除非该前端页面是由你亲自从零开始编写,否则从哪个网站摘录复制,从中修改都请注明。通常是直接链接到参考的模板页面。
=== 依赖 ===
如果使用者要使用该前端,该前端可能会依赖些什么,一般来说可能会有以下情况
# 就模板内会使用一些解析器函数,这些函数可能被包含于某个扩展,所以在该模板的依赖可能包含某些扩展
# 可能模板内需要使用一些配置,比如需要在LocalSettings.php里面设置相关的变量,这个需要添加
=== 源码 ===
该标题下添加对应模板的源码,需要声明该模板有哪些文件,比如:
<pre>
消息盒子
Mediawiki:common.js
Mediawiki:common.css
</pre>
上面的内容说明了该前端具备3个页面,一个前端的主体调用页面,一个前端所使用的CSS页面,一个前端所使用的JS页面。
使用者在使用复制源码的时候,也应该使用这种层级的页面命名或者部署。
然后使用如下的模板和内容进行填充操作:
<pre>
{{TabbedWindowBegin}}
=== 页面名称 ===
* 消息盒子
* Mediawiki:common.js
* Mediawiki:common.css
=== 消息盒子 ===
<syntaxhighlight lang="html" line="true">
消息盒子相关代码
</syntaxhighlight>
=== Mediawiki:common.js ===
<syntaxhighlight lang="JavaScript" line="true">
Mediawiki:common.js相关代码
</syntaxhighlight>
=== Mediawiki:common.css ===
<syntaxhighlight lang="css" line="true">
Mediawiki:common.css相关代码
</syntaxhighlight>
{{TabbedWindowEnd}}
</pre>
=== 文档 ===
文档这个就不好说了,毕竟有的大型的模板文档里面关于如何使用都是哗啦哗啦的巨幅篇章。能复制就复制,不能复制就使用链接指过去吧。
== 分类 ==
分类必须包含'''仓库''','''前端'''。
[[分类:规则]]
7c351866e2cfd13756d2be96a1ece5093971a64b
文件:GameKee logo.png
6
134
273
2022-11-25T11:50:35Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:GameKee
3000
135
274
2022-11-25T11:50:54Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=GameKee_logo.png |网站名称=GameKee |网站网址=https://www.gamekee.com/ |一级分类=维基农场 |使用软件= |网站性质=公司 |用户权限=1 |内容许可= }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=GameKee_logo.png
|网站名称=GameKee
|网站网址=https://www.gamekee.com/
|一级分类=维基农场
|使用软件=
|网站性质=公司
|用户权限=1
|内容许可=
}}
2e458c440683f2fdd1ceff82e6f3aae4dec9acd6
模板:教授信息
10
136
275
2023-01-05T14:02:50Z
Xuchenyang
9
创建页面,内容为“<noinclude> {{#template_params:姓名|性别|学校|院系|重点实验室|称号|Hindex|被引次数|研究方向|科研项目|参考网址|自我介绍}} {{#cargo_declare:_table=教授信息|姓名=String|性别=String|学校=String|院系=String|重点实验室=String|称号=String|Hindex=Integer|被引次数=Integer|研究方向=List (,) of String|科研项目=List (;) of String|参考网址=List (,) of URL|自我介绍=Text}} </noinclude><includeonly>{{#…”
wikitext
text/x-wiki
<noinclude>
{{#template_params:姓名|性别|学校|院系|重点实验室|称号|Hindex|被引次数|研究方向|科研项目|参考网址|自我介绍}}
{{#cargo_declare:_table=教授信息|姓名=String|性别=String|学校=String|院系=String|重点实验室=String|称号=String|Hindex=Integer|被引次数=Integer|研究方向=List (,) of String|科研项目=List (;) of String|参考网址=List (,) of URL|自我介绍=Text}}
</noinclude><includeonly>{{#cargo_store:_table=教授信息}}
{{#template_display:_format=standard}}
[[分类:教授]]
</includeonly>
18e6a61a69b316878ea3bf225ab83b932c24453e
279
275
2023-01-05T14:10:42Z
Xuchenyang
9
wikitext
text/x-wiki
<noinclude>
{{#template_params:姓名|性别|学校|院系|重点实验室|称号|Hindex|被引次数|研究方向|科研项目|参考网址|自我介绍}}
{{#cargo_declare:_table=教授信息|姓名=String|性别=String|学校=String|院系=String|重点实验室=String|称号=String|Hindex=Integer|被引次数=Integer|研究方向=List (,) of String|科研项目=List (;) of String|参考网址=List (,) of URL|自我介绍=Text}}
</noinclude><includeonly>{{#cargo_store:_table=教授信息}}
{{#template_display:_format=standard}}
[[分类:教授]]
</includeonly>
cd38a38efb49a677479c14fd6c8f4127cadbe433
283
279
2023-01-05T14:34:07Z
Xuchenyang
9
wikitext
text/x-wiki
<noinclude>
{{#template_params:姓名|性别|学校|院系|重点实验室|称号|Hindex|被引次数|研究方向|科研项目|参考网址|自我介绍}}
{{#cargo_declare:_table=professor|姓名=String|性别=String|学校=String|院系=String|重点实验室=String|称号=String|Hindex=Integer|被引次数=Integer|研究方向=List (,) of String|科研项目=List (;) of String|参考网址=List (,) of URL|自我介绍=Text}}
</noinclude><includeonly>{{#cargo_store:_table=professor}}
{{#template_display:_format=standard}}
[[分类:教授]]
</includeonly>
eba121b677b702a23e0d77e64d1a646f0efc559b
模板:论文信息
10
137
276
2023-01-05T14:04:03Z
Xuchenyang
9
创建页面,内容为“<noinclude> {{#template_params:题目|关键字|摘要}} {{#cargo_declare:_table=论文信息|题目=String|关键字=List (,) of String|摘要=Text}} </noinclude><includeonly>{{#cargo_store:_table=论文信息}} {{#template_display:_format=standard}} [[分类:论文]] </includeonly>”
wikitext
text/x-wiki
<noinclude>
{{#template_params:题目|关键字|摘要}}
{{#cargo_declare:_table=论文信息|题目=String|关键字=List (,) of String|摘要=Text}}
</noinclude><includeonly>{{#cargo_store:_table=论文信息}}
{{#template_display:_format=standard}}
[[分类:论文]]
</includeonly>
0c4221a0278915cb7e8ce863eaacb157ec587b45
表单:教授
106
138
277
2023-01-05T14:06:50Z
Xuchenyang
9
创建页面,内容为“<noinclude> 这是“教授”表单。要用这个表单创建一个页面,在下面输入页面名;如果使用这个名称的页面已存在,您将被送到编辑那个页面的表单。 {{#forminput:form=教授}} </noinclude><includeonly> <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> {{{for template|教授信息|label=教授信息}}} {| class="formtable" ! : | {{{fie…”
wikitext
text/x-wiki
<noinclude>
这是“教授”表单。要用这个表单创建一个页面,在下面输入页面名;如果使用这个名称的页面已存在,您将被送到编辑那个页面的表单。
{{#forminput:form=教授}}
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|教授信息|label=教授信息}}}
{| class="formtable"
! :
| {{{field|姓名|input type=text}}}
|-
! 自我介绍:
| {{{field|性别|input type=text}}}
|-
! 学校:
| {{{field|学校|input type=text}}}
|-
! 院系:
| {{{field|院系|input type=text}}}
|-
! 重点实验室:
| {{{field|重点实验室|input type=text}}}
|-
! 称号:
| {{{field|称号|input type=text}}}
|-
! Hindex:
| {{{field|Hindex|input type=text}}}
|-
! 被引次数:
| {{{field|被引次数|input type=text}}}
|-
! 研究方向:
| {{{field|研究方向|input type=text}}}
|-
! 科研项目:
| {{{field|科研项目|input type=text}}}
|-
! 参考网址:
| {{{field|参考网址|input type=text}}}
|-
! 自我介绍:
| {{{field|自我介绍|input type=textarea}}}
|}
{{{end template}}}
{{{for template|论文信息|multiple|label=论文信息}}}
'''题目:''' {{{field|题目|input type=text}}}
'''关键字:''' {{{field|关键字|input type=text}}}
'''摘要:''' {{{field|摘要|input type=textarea}}}
{{{end template}}}
'''自由文本:'''
{{{standard input|free text|rows=10}}}
</includeonly>
43266b67ea33baab6e12eba4e68b11a77333bcbe
278
277
2023-01-05T14:08:32Z
Xuchenyang
9
wikitext
text/x-wiki
<noinclude>
这是“教授”表单。要用这个表单创建一个页面,在下面输入页面名;如果使用这个名称的页面已存在,您将被送到编辑那个页面的表单。
{{#forminput:form=教授}}
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|教授信息|label=教授信息}}}
{| class="formtable"
! 姓名:
| {{{field|姓名|input type=text}}}
|-
! 性别:
| {{{field|性别|input type=text}}}
|-
! 学校:
| {{{field|学校|input type=text}}}
|-
! 院系:
| {{{field|院系|input type=text}}}
|-
! 重点实验室:
| {{{field|重点实验室|input type=text}}}
|-
! 称号:
| {{{field|称号|input type=text}}}
|-
! Hindex:
| {{{field|Hindex|input type=text}}}
|-
! 被引次数:
| {{{field|被引次数|input type=text}}}
|-
! 研究方向:
| {{{field|研究方向|input type=text}}}
|-
! 科研项目:
| {{{field|科研项目|input type=text}}}
|-
! 参考网址:
| {{{field|参考网址|input type=text}}}
|-
! 自我介绍:
| {{{field|自我介绍|input type=textarea}}}
|}
{{{end template}}}
{{{for template|论文信息|multiple|label=论文信息}}}
'''题目:''' {{{field|题目|input type=text}}}
'''关键字:''' {{{field|关键字|input type=text}}}
'''摘要:''' {{{field|摘要|input type=textarea}}}
{{{end template}}}
'''自由文本:'''
{{{standard input|free text|rows=10}}}
</includeonly>
fe301cbc9871be6340a3cc3defc3b7515cf4d0ca
张雄
0
139
280
2023-01-05T14:19:56Z
Xuchenyang
9
创建页面,内容为“{{教授信息 |姓名=对的 |性别=对的 |学校=对的 |院系=对的 |重点实验室=对的 |称号=得到的 |Hindex=12 |被引次数=12 |研究方向=对的 |科研项目=对的 |参考网址=对的 |自我介绍=得到的 }}”
wikitext
text/x-wiki
{{教授信息
|姓名=对的
|性别=对的
|学校=对的
|院系=对的
|重点实验室=对的
|称号=得到的
|Hindex=12
|被引次数=12
|研究方向=对的
|科研项目=对的
|参考网址=对的
|自我介绍=得到的
}}
1707fb04a27ca343fe001c88a984c438352cff21
MPM
0
140
281
2023-01-05T14:20:56Z
Xuchenyang
9
创建页面,内容为“{{论文信息 |题目=少时诵诗书 |关键字=损伤 |摘要=少时诵诗书所所所所所所所所所所所所所所所 }}”
wikitext
text/x-wiki
{{论文信息
|题目=少时诵诗书
|关键字=损伤
|摘要=少时诵诗书所所所所所所所所所所所所所所所
}}
1aa62dd4953fc657eea329f324b8bdb4dec6df8f
表单:老师
106
141
282
2023-01-05T14:25:43Z
Xuchenyang
9
创建页面,内容为“<noinclude> 这是“老师”表单。要用这个表单创建一个页面,在下面输入页面名;如果使用这个名称的页面已存在,您将被送到编辑那个页面的表单。 {{#forminput:form=老师}} </noinclude><includeonly> <div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div> {{{for template|教授信息|label=教授信息}}} {| class="formtable" ! 姓名: |…”
wikitext
text/x-wiki
<noinclude>
这是“老师”表单。要用这个表单创建一个页面,在下面输入页面名;如果使用这个名称的页面已存在,您将被送到编辑那个页面的表单。
{{#forminput:form=老师}}
</noinclude><includeonly>
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
{{{for template|教授信息|label=教授信息}}}
{| class="formtable"
! 姓名:
| {{{field|姓名|input type=text}}}
|-
! 自我介绍:
| {{{field|性别|input type=text}}}
|-
! 学校:
| {{{field|学校|input type=text}}}
|-
! 院系:
| {{{field|院系|input type=text}}}
|-
! 重点实验室:
| {{{field|重点实验室|input type=text}}}
|-
! 称号:
| {{{field|称号|input type=text}}}
|-
! Hindex:
| {{{field|Hindex|input type=text}}}
|-
! 被引次数:
| {{{field|被引次数|input type=text}}}
|-
! 研究方向:
| {{{field|研究方向|input type=text}}}
|-
! 科研项目:
| {{{field|科研项目|input type=text}}}
|-
! 参考网址:
| {{{field|参考网址|input type=text}}}
|-
! 自我介绍:
| {{{field|自我介绍|input type=textarea}}}
|}
{{{end template}}}
'''自由文本:'''
{{{standard input|free text|rows=10}}}
</includeonly>
441ebbca37b217f12ee0a3f982e463f9c6f02762
模板:首页
10
13
284
249
2023-01-06T11:46:48Z
Istudylinux
1
wikitext
text/x-wiki
<center style="color:red;font-size:24px;">不要在此网站做测试</center>
<templatestyles src="Template:首页/styles.css" />
<div id="audiences" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>入门</span></h3>
<div id="mainpage-admins" title="入门"
class="items">
* [https://pan.baidu.com/s/1S78BYsN8NVFxIlv7QiDeQg?pwd=haha MW软件下载:haha]
{{#dpl:
|category=入门
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>模板仓库</span></h3>
<div id="mainpage-users" title="模板仓库" class="items">
{{#dpl:
|category=模板
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>前端仓库</span></h3>
<div id="mainpage-devs" title="前端仓库" class="items">
{{#dpl:
|category=前端
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
</div>
<div id="misc-news" class="mainpage_row">
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI农场</span></h3>
<div id=mainpage-help-contribute" title="WIKI农场"
class="items">
{{#dpl:
|category=维基农场
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>WIKI网站</span></h3>
<div id="mainpage-news" title="WIKI网站" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
最近添加:
{{#dpl:
|category=网站
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
<span class="plainlinks">[[网站|<span class="mw-ui-button mw-ui-constructive mw-ui-small">更多</span>]]</span>
</div>
</div>
</div>
<div class="mainpage_box">
<h3><span class="header_icon" aria-hidden="true" role="presentation">[[File:icon_setting.png|20px|middle|link=]]</span><span>相关规则</span></h3>
<div id="mainpage-news" title="相关规则" class="items">
<div style="margin: auto; vertical-align:top; text-align:left">
<div class="mainpage_boxcontents_small">
网站规则:
[[Istudylinux:关于]]
{{#dpl:
|category=规则
|ordermethod=lastedit
|order=descending
|count=10
}}
</div>
</div>
</div>
</div>
</div>
</div>
__NOEDITSECTION__
__NOTOC__
cd62402aabdfb968a4c59e1b26ec9dda8f77eb70
文件:Qiuwen logo.png
6
142
285
2023-03-25T08:41:13Z
Istudylinux
1
wikitext
text/x-wiki
da39a3ee5e6b4b0d3255bfef95601890afd80709
网站:求闻百科
3000
143
286
2023-03-25T08:41:21Z
Istudylinux
1
创建页面,内容为“{{Infobox_site |网站Logo=qiuwen_logo.png |网站名称=求闻百科 |网站网址=https://www.qiuwenbaike.cn |一级分类=百科全书 |使用软件= |网站性质= |用户权限=1 |内容许可=BY-SA }}”
wikitext
text/x-wiki
{{Infobox_site
|网站Logo=qiuwen_logo.png
|网站名称=求闻百科
|网站网址=https://www.qiuwenbaike.cn
|一级分类=百科全书
|使用软件=
|网站性质=
|用户权限=1
|内容许可=BY-SA
}}
e6b1c7f467a4cca5d219f3918b89d827d7756c80